[libgis] Keep the sphere locked while drawing the wireframe
- From: Andy Spencer <andys src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgis] Keep the sphere locked while drawing the wireframe
- Date: Mon, 1 Nov 2010 04:46:09 +0000 (UTC)
commit f3ce9bea640d6c357cd328b4f89fa36121e70f4f
Author: Andy Spencer <andy753421 gmail com>
Date: Mon Nov 1 03:47:24 2010 +0000
Keep the sphere locked while drawing the wireframe
src/gis-opengl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]