mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-16 13:46:34 +00:00
Fix depth issues in multiple games
This commit is contained in:
parent
8eab028383
commit
bee66bdb4d
@ -221,7 +221,7 @@ void TransformDrawEngine::ApplyDrawState(int prim) {
|
||||
if (gstate.isDepthTestEnabled()) {
|
||||
glstate.depthTest.enable();
|
||||
glstate.depthFunc.set(GL_ALWAYS);
|
||||
glstate.depthWrite.set(depthMask ? GL_TRUE : GL_FALSE);
|
||||
glstate.depthWrite.set(depthMask || !gstate.isFogEnabled() || !gstate.isDepthWriteEnabled() ? GL_TRUE : GL_FALSE);
|
||||
} else {
|
||||
glstate.depthTest.enable();
|
||||
glstate.depthFunc.set(GL_ALWAYS);
|
||||
|
Loading…
Reference in New Issue
Block a user