Only zero alpha if stencil op consistently says to zero.

Otherwise we may be better off keeping the alpha.
This commit is contained in:
Henrik Rydgard
2013-12-08 13:04:54 +01:00
parent 109decf481
commit 7b4759384f
+5 -1
View File
@@ -174,7 +174,11 @@ StencilValueType ReplaceAlphaWithStencilType() {
return STENCIL_VALUE_UNIFORM;
case GE_STENCILOP_ZERO:
return STENCIL_VALUE_ZERO;
if (gstate.getStencilOpZFail() == GE_STENCILOP_ZERO) {
return STENCIL_VALUE_ZERO;
} else {
return STENCIL_VALUE_KEEP;
}
// Decrementing always zeros, since there's only one bit.
case GE_STENCILOP_DECR: