diff --git a/GPU/GLES/StateMapping.cpp b/GPU/GLES/StateMapping.cpp index ea0a8b4cd2..70bdf98cf0 100644 --- a/GPU/GLES/StateMapping.cpp +++ b/GPU/GLES/StateMapping.cpp @@ -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(); }