diff options
author | Eric Anholt <eric@anholt.net> | 2008-09-12 14:18:14 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-09-12 15:09:43 -0700 |
commit | bdc8ac4ae2c711e2569618136bf7d9c7b25be53e (patch) | |
tree | adc0d8c03d5addbe8efdacf30856ebb5ab06926f | |
parent | 34bba445a12f7b81654a416fd1630c8890cfc178 (diff) |
Finish off the previous fix for TFP.
A couple of those lines of debug printfs I deleted weren't actually debug
printfs.
-rw-r--r-- | src/glx/x11/dri2_glx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glx/x11/dri2_glx.c b/src/glx/x11/dri2_glx.c index c56adfa5587..3c366bfa1e4 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; |