[PICA] Set depth mask to GL_TRUE even if depth testing is off if depth write is enabled
This commit is contained in:
@@ -344,6 +344,7 @@ void Renderer::drawVertices(OpenGL::Primitives primType, Vertex* vertices, u32 c
|
|||||||
if (depthWriteEnable) {
|
if (depthWriteEnable) {
|
||||||
OpenGL::enableDepth();
|
OpenGL::enableDepth();
|
||||||
glDepthFunc(GL_ALWAYS);
|
glDepthFunc(GL_ALWAYS);
|
||||||
|
glDepthMask(GL_TRUE);
|
||||||
bindDepthBuffer();
|
bindDepthBuffer();
|
||||||
} else {
|
} else {
|
||||||
OpenGL::disableDepth();
|
OpenGL::disableDepth();
|
||||||
|
|||||||
Reference in New Issue
Block a user