mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix stencil issue in MotoGP
This commit is contained in:
parent
69d14879b2
commit
d43a2f4d06
1 changed files with 3 additions and 6 deletions
|
@ -234,12 +234,9 @@ void TransformDrawEngine::ApplyDrawState(int prim) {
|
||||||
glstate.colorMask.set(colorMask, colorMask, colorMask, alphaMask);
|
glstate.colorMask.set(colorMask, colorMask, colorMask, alphaMask);
|
||||||
|
|
||||||
// Stencil Test
|
// Stencil Test
|
||||||
if (gstate.isStencilTestEnabled()) {
|
glstate.stencilTest.enable();
|
||||||
glstate.stencilTest.enable();
|
glstate.stencilOp.set(GL_REPLACE, GL_REPLACE, GL_REPLACE);
|
||||||
glstate.stencilOp.set(GL_REPLACE, GL_REPLACE, GL_REPLACE);
|
glstate.stencilFunc.set(GL_ALWAYS, 0, 0xFF);
|
||||||
glstate.stencilFunc.set(GL_ALWAYS, 0, 0xFF);
|
|
||||||
} else
|
|
||||||
glstate.stencilTest.disable();
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue