Merge pull request #3471 from raven02/patch-29

Fix FF2 issue #2857
This commit is contained in:
Henrik Rydgård 2013-08-29 08:43:07 -07:00
commit 5e3270060f

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;
}
}