mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 18:49:51 +01:00
Only zero alpha if stencil op consistently says to zero.
Otherwise we may be better off keeping the alpha.
This commit is contained in:
1 parent
109decf481
commit
7b4759384f
1 file changed
+5
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user