[PICA] Set depth mask to GL_TRUE even if depth testing is off if depth write is enabled

This commit is contained in:
wheremyfoodat 2023-03-04 04:04:20 +02:00
parent f25bc2dd89
commit dca560a8da

View file

@ -344,6 +344,7 @@ void Renderer::drawVertices(OpenGL::Primitives primType, Vertex* vertices, u32 c
if (depthWriteEnable) {
OpenGL::enableDepth();
glDepthFunc(GL_ALWAYS);
glDepthMask(GL_TRUE);
bindDepthBuffer();
} else {
OpenGL::disableDepth();