Skip to content

Commit

Permalink
Merge pull request #5992 from raven02/patch-35
Browse files Browse the repository at this point in the history
Set depth update flag when depth write is enabled in non-clear mode only
  • Loading branch information
hrydgard committed May 4, 2014
2 parents aab3bd6 + e0e1a6b commit 3d45976
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion GPU/GLES/StateMapping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,9 @@ void TransformDrawEngine::ApplyDrawState(int prim) {
glstate.depthTest.enable();
glstate.depthFunc.set(ztests[gstate.getDepthTestFunction()]);
glstate.depthWrite.set(gstate.isDepthWriteEnabled() || alwaysDepthWrite ? GL_TRUE : GL_FALSE);
framebufferManager_->SetDepthUpdated();
if (gstate.isDepthWriteEnabled() || alwaysDepthWrite) {
framebufferManager_->SetDepthUpdated();
}
} else {
glstate.depthTest.disable();
}
Expand Down

0 comments on commit 3d45976

Please sign in to comment.