mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 01:33:45 +01:00
Fix fog and stencil buffer clearing. The latter fixes the sky in MotoGP.
This commit is contained in:
1 parent
7d1ddced9f
commit
7271e3fcd5
10 files changed
+120
-46
No files matched your search
@@ -183,6 +183,10 @@ void ApplyDrawState(int prim) {
|
||||
glstate.stencilOp.set(stencilOps[gstate.stencilop & 0x7], // stencil fail
|
||||
stencilOps[(gstate.stencilop >> 8) & 0x7], // depth fail
|
||||
stencilOps[(gstate.stencilop >> 16) & 0x7]);
|
||||
} else if (gstate.isModeClear()) {
|
||||
glstate.stencilTest.enable();
|
||||
glstate.stencilOp.set(GL_REPLACE, GL_REPLACE, GL_REPLACE);
|
||||
glstate.stencilFunc.set(GL_ALWAYS, 0, 0xFF);
|
||||
} else {
|
||||
glstate.stencilTest.disable();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user