mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 00:33:34 +01:00
Fall the depth test to the simplest and correct one
This commit is contained in:
1 parent
3139c5f97f
commit
cffb397fbf
1 file changed
+3
-9
@@ -215,15 +215,9 @@ void TransformDrawEngine::ApplyDrawState(int prim) {
|
||||
|
||||
// Depth Test
|
||||
bool depthMask = (gstate.clearmode >> 10) & 1;
|
||||
if (gstate.isDepthTestEnabled()) {
|
||||
glstate.depthTest.enable();
|
||||
glstate.depthFunc.set(GL_ALWAYS);
|
||||
glstate.depthWrite.set(depthMask || !gstate.isDepthWriteEnabled() ? GL_TRUE : GL_FALSE);
|
||||
} else {
|
||||
glstate.depthTest.enable();
|
||||
glstate.depthFunc.set(GL_ALWAYS);
|
||||
glstate.depthWrite.set(GL_TRUE);
|
||||
}
|
||||
glstate.depthTest.enable();
|
||||
glstate.depthFunc.set(GL_ALWAYS);
|
||||
glstate.depthWrite.set(depthMask ? GL_TRUE : GL_FALSE);
|
||||
|
||||
// Color Test
|
||||
bool colorMask = (gstate.clearmode >> 8) & 1;
|
||||
|
||||
Reference in new issue
Block a user