diff options
Diffstat (limited to 'src/opengl_widget.cc')
-rw-r--r-- | src/opengl_widget.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/opengl_widget.cc b/src/opengl_widget.cc index ccdcac5..2100af0 100644 --- a/src/opengl_widget.cc +++ b/src/opengl_widget.cc @@ -207,7 +207,10 @@ void OpenGLWidget::paintGL() { main_program.setUniformValue("view", view); main_program.setUniformValue("highlight", false); glActiveTexture(GL_TEXTURE0); + glEnable(GL_POLYGON_OFFSET_FILL); + glPolygonOffset(1, 1); ground->draw(this, QMatrix4x4()); + glDisable(GL_POLYGON_OFFSET_FILL); if (painter) painter->draw(this); main_program.release(); } |