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 c56adfa558761175ef8ce6050feed1bb0a2e4436..3c366bfa1e4cdb12fcfcfdf382f645c7d40458b3 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;