mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-24 05:49:58 +00:00
commit
5e3270060f
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user