aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2021-01-21 21:10:43 +0100
committerArisotura <thetotalworm@gmail.com>2021-01-21 21:10:43 +0100
commit8a068c22947163d98b78645d5604efb20f6a3241 (patch)
tree2dcf5f18a16b7dd6fc7a2e8a8f40b618bed24668 /src
parentbf0ea26596251d3a1af536b8dfe5f9c9d98d0cd9 (diff)
GL: ensure to set depthmask to TRUE before rendering opaque shit
Diffstat (limited to 'src')
-rw-r--r--src/GPU3D_OpenGL.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/GPU3D_OpenGL.cpp b/src/GPU3D_OpenGL.cpp
index adb0ddf..f24567c 100644
--- a/src/GPU3D_OpenGL.cpp
+++ b/src/GPU3D_OpenGL.cpp
@@ -980,6 +980,8 @@ void RenderSceneChunk(int y, int h)
glStencilOp(GL_KEEP, GL_KEEP, GL_REPLACE);
glStencilMask(0xFF);
+ glDepthMask(GL_TRUE);
+
RenderSinglePolygon(i);
}
@@ -1083,6 +1085,8 @@ void RenderSceneChunk(int y, int h)
glStencilOp(GL_KEEP, GL_KEEP, GL_REPLACE);
glStencilMask(0xFF);
+ glDepthMask(GL_TRUE);
+
RenderSinglePolygon(i);
}