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:
committed by
Alex Deucher
parent
9cf25b3d1c
commit
ef0720758e
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user