Fix FF2 issue #2857

This commit is contained in:
raven02 committed 2013-08-29 22:50:31 +08:00
1 parent de65d0df0e
commit 65d836c5dd
1 file changed
+5 -3
+5 -3
View File
@@ -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;
}
}