Merge pull request #494 from raven02/shader-fix

Fix bugs with lmode bit in shader IDs
This commit is contained in:
Henrik Rydgård 2013-01-25 06:25:36 -08:00
commit 4c313e31ac

View File

@ -56,7 +56,7 @@ void ComputeFragmentShaderID(FragmentShaderID *id)
id->d[0] |= ((gstate.texfunc & 0x100) >> 8) << 5; // rgb or rgba
id->d[0] |= ((gstate.texfunc & 0x10000) >> 16) << 6; // color double
}
id->d[0] |= (lmode & 1) << 6;
id->d[0] |= (lmode & 1) << 7;
id->d[0] |= (gstate.alphaTestEnable & 1) << 8;
if (gstate.alphaTestEnable & 1)
id->d[0] |= (gstate.alphatest & 0x7) << 9; // alpha test func