From 65d836c5dd704d63458b0a9d2e0ab7af1bf4bbbc Mon Sep 17 00:00:00 2001 From: raven02 Date: Thu, 29 Aug 2013 22:50:31 +0800 Subject: [PATCH] Fix FF2 issue #2857 --- GPU/GLES/FragmentShaderGenerator.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/GPU/GLES/FragmentShaderGenerator.cpp b/GPU/GLES/FragmentShaderGenerator.cpp index c94b8e4dc5..3ace94d4db 100644 --- a/GPU/GLES/FragmentShaderGenerator.cpp +++ b/GPU/GLES/FragmentShaderGenerator.cpp @@ -73,7 +73,6 @@ static bool IsAlphaTestTriviallyTrue() { // Non-zero check. If we have no depth testing (and thus no depth writing), and an alpha func that will result in no change if zero alpha, get rid of the alpha test. // Speeds up Lumines by a LOT on PowerVR. - case GE_COMP_NOTEQUAL: case GE_COMP_GREATER: { bool depthTest = gstate.isDepthTestEnabled(); @@ -90,7 +89,9 @@ static bool IsAlphaTestTriviallyTrue() { case GE_COMP_LEQUAL: return alphaTestRef == 255; - default: + case GE_COMP_EQUAL: + case GE_COMP_LESS: + case GE_COMP_NOTEQUAL: return false; } } @@ -104,7 +105,8 @@ static bool IsColorTestTriviallyTrue() { case GE_COMP_ALWAYS: return true; - default: + case GE_COMP_EQUAL: + case GE_COMP_NOTEQUAL: return false; } }