Enable depth test for the grids

This commit is contained in:
Malin E
2022-09-14 11:18:39 +02:00
parent 1c3dd8080c
commit 533b1965c7
@@ -294,7 +294,7 @@ void RenderableGrid::render(const RenderData& data, RendererTasks&){
glEnablei(GL_BLEND, 0);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_LINE_SMOOTH);
glDepthMask(false);
glEnable(GL_DEPTH_TEST);
// Render minor grid
glBindVertexArray(_vaoID);