From bdc8ac4ae2c711e2569618136bf7d9c7b25be53e Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 12 Sep 2008 14:18:14 -0700 Subject: [PATCH] Finish off the previous fix for TFP. A couple of those lines of debug printfs I deleted weren't actually debug printfs. --- src/glx/x11/dri2_glx.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.30.2