mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-25 17:19:42 +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
|
glstate.stencilOp.set(stencilOps[gstate.getStencilOpSFail()], // stencil fail
|
||||||
stencilOps[gstate.getStencilOpZFail()], // depth fail
|
stencilOps[gstate.getStencilOpZFail()], // depth fail
|
||||||
stencilOps[gstate.getStencilOpZPass()]); // depth pass
|
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 {
|
} else {
|
||||||
glstate.stencilTest.disable();
|
glstate.stencilTest.disable();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user