mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02: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:
@@ -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