destroy pixmap on disable, and dont error if it fails
authorDana Jansens <danakj@orodu.net>
Sun, 27 Jun 2010 18:25:19 +0000 (14:25 -0400)
committerDana Jansens <danakj@orodu.net>
Sun, 27 Jun 2010 21:18:55 +0000 (17:18 -0400)
openbox/composite.c

index 023bf51..6e4a406 100644 (file)
@@ -215,11 +215,13 @@ static gboolean bind_glx_pixmap(GLXPixmap gpx, GLuint tex)
 static void destroy_glx_pixmap(GLXPixmap gpx, GLuint tex)
 {
     if (gpx) {
+        obt_display_ignore_errors(TRUE);
         if (tex) {
             glBindTexture(GL_TEXTURE_2D, tex);
             glXReleaseTexImageEXT(obt_display, gpx, GLX_FRONT_LEFT_EXT);
         }
         glXDestroyPixmap(obt_display, gpx);
+        obt_display_ignore_errors(FALSE);
     }
 }