Skip to content

Commit

Permalink
Fix depth issues in multiple games
Browse files Browse the repository at this point in the history
  • Loading branch information
raven02 committed Jul 13, 2013
1 parent 8eab028 commit bee66bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPU/GLES/StateMapping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bee66bd

Please sign in to comment.