Skip to content

Commit

Permalink
#2132: The grid should write to the depth buffer, to allow for better…
Browse files Browse the repository at this point in the history
… visualisation of objects near the XY plane
  • Loading branch information
codereader committed Mar 7, 2021
1 parent 7579979 commit 9c3d313
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion radiant/camera/CamWnd.cpp
Expand Up @@ -603,7 +603,7 @@ void CamWnd::drawGrid()

glDisable(GL_TEXTURE_2D);
glDisable(GL_TEXTURE_1D);
glDisable(GL_DEPTH_TEST);
glEnable(GL_DEPTH_TEST);
glDisable(GL_BLEND);

glLineWidth(1);
Expand Down Expand Up @@ -635,6 +635,8 @@ void CamWnd::drawGrid()
glEnd();

glPopMatrix();

glDisable(GL_DEPTH_TEST);
}

void CamWnd::Cam_Draw()
Expand Down

0 comments on commit 9c3d313

Please sign in to comment.