aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}