mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 14:45:41 +12:00
[PICA] Set depth mask to GL_TRUE even if depth testing is off if depth write is enabled
This commit is contained in:
parent
f25bc2dd89
commit
dca560a8da
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue