gl zbuffer silliness

This commit is contained in:
aap 2020-04-26 21:20:51 +02:00
parent 09b0b36e7d
commit bae891fdd9

View File

@ -173,7 +173,6 @@ setDepthTest(bool32 enable)
glDisable(GL_DEPTH_TEST); glDisable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL); glDepthFunc(GL_LEQUAL);
} }
} }
} }
@ -719,7 +718,9 @@ clearCamera(Camera *cam, RGBA *col, uint32 mode)
mask |= GL_COLOR_BUFFER_BIT; mask |= GL_COLOR_BUFFER_BIT;
if(mode & Camera::CLEARZ) if(mode & Camera::CLEARZ)
mask |= GL_DEPTH_BUFFER_BIT; mask |= GL_DEPTH_BUFFER_BIT;
glDepthMask(GL_TRUE);
glClear(mask); glClear(mask);
glDepthMask(rwStateCache.zwrite);
} }
static void static void