From 8a068c22947163d98b78645d5604efb20f6a3241 Mon Sep 17 00:00:00 2001 From: Arisotura Date: Thu, 21 Jan 2021 21:10:43 +0100 Subject: [PATCH] GL: ensure to set depthmask to TRUE before rendering opaque shit --- src/GPU3D_OpenGL.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); }