Set a bit to account for fixa/fixb/etc. logic.

This commit is contained in:
Unknown W. Brackets 2014-05-12 08:39:58 -07:00
parent b8a2410934
commit 0eae30dddb

View file

@ -399,10 +399,11 @@ void ComputeFragmentShaderID(FragmentShaderID *id) {
gpuStats.numNonAlphaTestedDraws++;
if (ShouldUseShaderBlending()) {
// 11 bits total.
id1 |= (gstate.getBlendEq() << 0);
id1 |= (gstate.getBlendFuncA() << 3);
id1 |= (gstate.getBlendFuncB() << 7);
// 12 bits total.
id1 |= 1;
id1 |= (gstate.getBlendEq() << 1);
id1 |= (gstate.getBlendFuncA() << 4);
id1 |= (gstate.getBlendFuncB() << 8);
}
}