mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 00:33:34 +01:00
Fix FF2 issue #2857
This commit is contained in:
1 parent
de65d0df0e
commit
65d836c5dd
1 file changed
+5
-3
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user