From: Daniel Lichtenberger Date: Mon, 15 Nov 2010 06:32:42 +0000 (-0500) Subject: radeon: fix potential segfault in renderbuffer update X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef0720758e5ba34d0d163bdf5efc6e8dabd65aa8;p=mesa.git radeon: fix potential segfault in renderbuffer update Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=31617 Signed-off-by: Alex Deucher --- diff --git a/src/mesa/drivers/dri/radeon/radeon_common_context.c b/src/mesa/drivers/dri/radeon/radeon_common_context.c index a436ec112cc..edae7e4b83b 100644 --- a/src/mesa/drivers/dri/radeon/radeon_common_context.c +++ b/src/mesa/drivers/dri/radeon/radeon_common_context.c @@ -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);