summaryrefslogtreecommitdiff
path: root/src/glx/x11
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-09-12 14:18:14 -0700
committerEric Anholt <eric@anholt.net>2008-09-12 15:09:43 -0700
commitbdc8ac4ae2c711e2569618136bf7d9c7b25be53e (patch)
treeadc0d8c03d5addbe8efdacf30856ebb5ab06926f /src/glx/x11
parent34bba445a12f7b81654a416fd1630c8890cfc178 (diff)
Finish off the previous fix for TFP.
A couple of those lines of debug printfs I deleted weren't actually debug printfs.
Diffstat (limited to 'src/glx/x11')
-rw-r--r--src/glx/x11/dri2_glx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glx/x11/dri2_glx.c b/src/glx/x11/dri2_glx.c
index c56adfa558..3c366bfa1e 100644
--- a/src/glx/x11/dri2_glx.c
+++ b/src/glx/x11/dri2_glx.c
@@ -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;