mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-04 15:06:25 +00:00
Disable alpha test optimization with logic ops.
We still need to discard the pixels in the case of a logic op, like invert. Otherwise we will invert the blended pixels too. See #8632.
This commit is contained in:
parent
3924d8bdea
commit
944a1f380b
@ -92,6 +92,7 @@ bool IsAlphaTestTriviallyTrue() {
|
||||
return (gstate_c.vertexFullAlpha && (gstate_c.textureFullAlpha || !gstate.isTextureAlphaUsed())) || (
|
||||
(!gstate.isStencilTestEnabled() &&
|
||||
!gstate.isDepthTestEnabled() &&
|
||||
(!gstate.isLogicOpEnabled() || gstate.getLogicOp() == GE_LOGIC_COPY) &&
|
||||
gstate.getAlphaTestRef() == 0 &&
|
||||
gstate.isAlphaBlendEnabled() &&
|
||||
gstate.getBlendFuncA() == GE_SRCBLEND_SRCALPHA &&
|
||||
|
Loading…
Reference in New Issue
Block a user