diff --git a/src/GPU3D_OpenGL.cpp b/src/GPU3D_OpenGL.cpp index adb0ddfd..f24567c3 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); }