mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #7515 from unknownbrackets/gpu-minor2
For 5551 buffers, force stencil mask to 1/0
This commit is contained in:
commit
0d69576810
1 changed files with 6 additions and 1 deletions
|
@ -701,7 +701,12 @@ void TransformDrawEngine::ApplyDrawState(int prim) {
|
|||
glstate.stencilOp.set(stencilOps[gstate.getStencilOpSFail()], // stencil fail
|
||||
stencilOps[gstate.getStencilOpZFail()], // depth fail
|
||||
stencilOps[gstate.getStencilOpZPass()]); // depth pass
|
||||
glstate.stencilMask.set(~abits);
|
||||
|
||||
if (gstate.FrameBufFormat() == GE_FORMAT_5551) {
|
||||
glstate.stencilMask.set(abits <= 0x7f ? 0xff : 0x00);
|
||||
} else {
|
||||
glstate.stencilMask.set(~abits);
|
||||
}
|
||||
} else {
|
||||
glstate.stencilTest.disable();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue