mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-12 09:09:47 +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) {
|
if (depthWriteEnable) {
|
||||||
OpenGL::enableDepth();
|
OpenGL::enableDepth();
|
||||||
glDepthFunc(GL_ALWAYS);
|
glDepthFunc(GL_ALWAYS);
|
||||||
|
glDepthMask(GL_TRUE);
|
||||||
bindDepthBuffer();
|
bindDepthBuffer();
|
||||||
} else {
|
} else {
|
||||||
OpenGL::disableDepth();
|
OpenGL::disableDepth();
|
||||||
|
|
Loading…
Add table
Reference in a new issue