summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Lichtenberger <[email protected]>2010-11-15 01:32:42 -0500
committerAlex Deucher <[email protected]>2010-11-15 01:32:42 -0500
commitef0720758e5ba34d0d163bdf5efc6e8dabd65aa8 (patch)
tree6ea31d95fdfae93b96f2ea9bb32e3a756ba82ea6 /src
parent9cf25b3d1cd2910ae33e1faafa04629638bff0fe (diff)
radeon: fix potential segfault in renderbuffer update
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=31617 Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_common_context.c3
1 files changed, 1 insertions, 2 deletions
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);