Merge pull request #7515 from unknownbrackets/gpu-minor2

For 5551 buffers, force stencil mask to 1/0
This commit is contained in:
Henrik Rydgård 2015-02-26 21:56:19 +01:00
commit 0d69576810

View File

@ -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();
} }