Fix a critical bug which caused shaders to be redundantly recompiled when disabling per-pixel depth.

As a nice side effect, the number of redundant shader compilations is now next to zero ;)
This commit is contained in:
NeoBrainX 2011-08-31 19:45:28 +02:00
parent 7f01139d13
commit 4137f287fd
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ void GetPixelShaderId(PIXELSHADERUID *uid, DSTALPHA_MODE dstAlphaMode)
{
// Courtesy of PreAlphaTest, we're done already ;)
// TODO: There's a comment including bpmem.genmode.numindstages.. shouldnt really bother about that though.
uid->tevstages = 1;
return;
}