radeon: fix potential segfault in renderbuffer update

Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=31617

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
This commit is contained in:
Daniel Lichtenberger 2010-11-15 01:32:42 -05:00 committed by Alex Deucher
parent 78ccca5a69
commit 9b1ac4d127

View file

@ -740,10 +740,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);