radeon: fix potential segfault in renderbuffer update
authorDaniel Lichtenberger <daniel.lichtenberger@gmail.com>
Mon, 15 Nov 2010 06:32:42 +0000 (01:32 -0500)
committerAlex Deucher <alexdeucher@gmail.com>
Mon, 15 Nov 2010 06:32:42 +0000 (01:32 -0500)
Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=31617

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
src/mesa/drivers/dri/radeon/radeon_common_context.c

index a436ec112cc4d34d17327573bbac13044f3a140a..edae7e4b83b05c6af0d9fc08e5f22ecdb3102154 100644 (file)
@@ -741,10 +741,9 @@ radeon_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable,
                                                buffers[i].flags);
 
                        if (bo == NULL) {
-
                                fprintf(stderr, "failed to attach %s %d\n",
                                        regname, buffers[i].name);
-
+                               continue;
                        }
 
                        ret = radeon_bo_get_tiling(bo, &tiling_flags, &pitch);