2008-04-1 Robert Bragg <bob@o-hand.com>
authorRobert Bragg <bob@openedhand.com>
Tue, 1 Apr 2008 13:36:19 +0000 (13:36 +0000)
committerRobert Bragg <bob@openedhand.com>
Tue, 1 Apr 2008 13:36:19 +0000 (13:36 +0000)
* clutter/glx/clutter-glx-texture-pixmap.c:
In clutter_glx_texture_pixmap_dispose; trap X errors around
glXDestroyGLXPixmap so we can't die due to BadDrawable errors.

ChangeLog
clutter/glx/clutter-glx-texture-pixmap.c

index 4f9f8a3..0b78082 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-04-1  Robert Bragg  <bob@o-hand.com>
+       
+       * clutter/glx/clutter-glx-texture-pixmap.c:
+       In clutter_glx_texture_pixmap_dispose; trap X errors around
+       glXDestroyGLXPixmap so we can't die due to BadDrawable errors.
+
 2008-03-31  Matthew Allum  <mallum@openedhand.com>
 
        * README:
index 9f6e15e..d5b267f 100644 (file)
@@ -162,8 +162,11 @@ clutter_glx_texture_pixmap_dispose (GObject *object)
 
   if (priv->glx_pixmap != None)
     {
+      clutter_x11_trap_x_errors ();
       glXDestroyGLXPixmap (((ClutterBackendX11 *)backend)->xdpy,
                            priv->glx_pixmap);
+      XSync (((ClutterBackendX11 *)backend)->xdpy, FALSE);
+      clutter_x11_untrap_x_errors ();
       priv->glx_pixmap = None;
     }