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:
Unknown W. Brackets 2016-03-12 09:25:59 -08:00
parent 3924d8bdea
commit 944a1f380b

View File

@ -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 &&