From: Andy Spencer Date: Mon, 1 Nov 2010 03:47:24 +0000 (+0000) Subject: Keep the sphere locked while drawing the wireframe X-Git-Tag: v0.5~46 X-Git-Url: http://pileus.org/git/?p=grits;a=commitdiff_plain;h=f3ce9bea640d6c357cd328b4f89fa36121e70f4f Keep the sphere locked while drawing the wireframe --- diff --git a/src/gis-opengl.c b/src/gis-opengl.c index 377a83e..e5f6468 100644 --- a/src/gis-opengl.c +++ b/src/gis-opengl.c @@ -210,12 +210,12 @@ static gboolean on_expose(GisOpenGL *opengl, GdkEventExpose *event, gpointer _) #else g_mutex_lock(opengl->objects_lock); g_tree_foreach(opengl->objects, _draw_level, opengl); - g_mutex_unlock(opengl->objects_lock); if (opengl->wireframe) { glClear(GL_DEPTH_BUFFER_BIT); glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); roam_sphere_draw(opengl->sphere); } + g_mutex_unlock(opengl->objects_lock); #endif GdkGLDrawable *gldrawable = gtk_widget_get_gl_drawable(GTK_WIDGET(opengl));