X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Fgis-opengl.c;h=65821d74038872e2f04d09d51d3dd77466b88e25;hp=d85b70bfe05a3c05b91306490563e1eb8cf2d5ce;hb=fc67f407d6493f57b5ab0ed32c4902cbf304e96b;hpb=2a43ce038cf100b56c310247cd59145585a056a8 diff --git a/src/gis-opengl.c b/src/gis-opengl.c index d85b70b..65821d7 100644 --- a/src/gis-opengl.c +++ b/src/gis-opengl.c @@ -394,6 +394,7 @@ static gboolean on_expose(GisOpenGL *self, GdkEventExpose *event, gpointer _) #else g_tree_foreach(self->objects, _draw_level, self); if (self->wireframe) { + glClear(GL_DEPTH_BUFFER_BIT); glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); roam_sphere_draw(self->sphere); }