From: Eric Anholt Date: Fri, 12 Sep 2008 21:18:14 +0000 (-0700) Subject: Finish off the previous fix for TFP. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bdc8ac4ae2c711e2569618136bf7d9c7b25be53e;p=mesa.git Finish off the previous fix for TFP. A couple of those lines of debug printfs I deleted weren't actually debug printfs. --- 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;