GL: ensure to set depthmask to TRUE before rendering opaque shit

This commit is contained in:
Arisotura 2021-01-21 21:10:43 +01:00
parent bf0ea26596
commit 8a068c2294

View File

@ -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);
}