From 0eae30dddb58bb1dc840d4b94d99998f972d697f Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 12 May 2014 08:39:58 -0700 Subject: [PATCH] Set a bit to account for fixa/fixb/etc. logic. --- GPU/GLES/FragmentShaderGenerator.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/GPU/GLES/FragmentShaderGenerator.cpp b/GPU/GLES/FragmentShaderGenerator.cpp index 272b0e1002..164f60df7c 100644 --- a/GPU/GLES/FragmentShaderGenerator.cpp +++ b/GPU/GLES/FragmentShaderGenerator.cpp @@ -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); } }