Finish off the previous fix for TFP.
authorEric Anholt <eric@anholt.net>
Fri, 12 Sep 2008 21:18:14 +0000 (14:18 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 12 Sep 2008 22:09:43 +0000 (15:09 -0700)
A couple of those lines of debug printfs I deleted weren't actually debug
printfs.

src/glx/x11/dri2_glx.c

index c56adfa..3c366bf 100644 (file)
@@ -211,6 +211,9 @@ dri2GetBuffers(__DRIdrawable *driDrawable,
 
     buffers = DRI2GetBuffers(pdraw->base.psc->dpy, pdraw->base.xDrawable,
                             width, height, attachments, count, out_count);
+    if (buffers == NULL)
+       return NULL;
+
     pdraw->width = *width;
     pdraw->height = *height;