mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-25 09:09:49 +00: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
@ -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…
Reference in New Issue
Block a user