Make sure frag shader ID matches generated code.

Before, we would use an id with alphatest on, but not actually compile in
alphatest.  Or, we would use a shader with alphatest, when we actually
could compile it out.
This commit is contained in:
Unknown W. Brackets 2013-10-26 02:19:02 -07:00
parent b06fdfeb02
commit 2c56ccef18

View file

@ -176,10 +176,10 @@ void ComputeFragmentShaderID(FragmentShaderID *id) {
}
id->d[0] |= (lmode & 1) << 7;
id->d[0] |= gstate.isAlphaTestEnabled() << 8;
id->d[0] |= enableAlphaTest << 8;
if (enableAlphaTest)
id->d[0] |= gstate.getAlphaTestFunction() << 9;
id->d[0] |= gstate.isColorTestEnabled() << 12;
id->d[0] |= enableColorTest << 12;
if (enableColorTest)
id->d[0] |= gstate.getColorTestFunction() << 13; // color test func
id->d[0] |= (enableFog & 1) << 15;