mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-24 14:00:03 +00:00
Only set depth update flag when depth write is enabled
This commit is contained in:
parent
2b50fcb016
commit
e0e1a6b217
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user