mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-16 16:00:30 +02:00
Revert "STENCIL_VALUE_UNKNOWN for DECR/INCR/INVERT"
This reverts commit59d3b92e71. Revert "zero alpha if stencil op consistently says to zero for format 5551 as well" This reverts commited07a7f411.
This commit is contained in:
1 parent
93d501518a
commit
e2080f6c65
1 file changed
+2
-8
@@ -149,15 +149,9 @@ StencilValueType ReplaceAlphaWithStencilType() {
|
||||
case GE_STENCILOP_REPLACE:
|
||||
return (gstate.getStencilTestRef() & 0x80) != 0 ? STENCIL_VALUE_ONE : STENCIL_VALUE_ZERO;
|
||||
|
||||
case GE_STENCILOP_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:
|
||||
case GE_STENCILOP_ZERO:
|
||||
return STENCIL_VALUE_ZERO;
|
||||
|
||||
// Incrementing always fills, since there's only one bit.
|
||||
@@ -186,11 +180,11 @@ StencilValueType ReplaceAlphaWithStencilType() {
|
||||
return STENCIL_VALUE_KEEP;
|
||||
}
|
||||
|
||||
// Decrementing always zeros, since there's only one bit.
|
||||
case GE_STENCILOP_DECR:
|
||||
case GE_STENCILOP_INCR:
|
||||
case GE_STENCILOP_INVERT:
|
||||
return STENCIL_VALUE_UNKNOWN;
|
||||
|
||||
case GE_STENCILOP_KEEP:
|
||||
return STENCIL_VALUE_KEEP;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user