From d3004d9156e261d81adcae31d55a4b782433cd6b Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sat, 27 Feb 2010 02:28:00 -0800 Subject: [PATCH] radeon: Assert pointer is not null before dereferencing. Add back an assert that was removed in commit cd5f167353f16fb4f5b349002625b704f3e23778. --- src/mesa/drivers/dri/radeon/radeon_tex_copy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/radeon/radeon_tex_copy.c b/src/mesa/drivers/dri/radeon/radeon_tex_copy.c index d6aeb7049f4..18cf182e547 100644 --- a/src/mesa/drivers/dri/radeon/radeon_tex_copy.c +++ b/src/mesa/drivers/dri/radeon/radeon_tex_copy.c @@ -58,6 +58,7 @@ do_copy_texsubimage(GLcontext *ctx, } assert(rrb && rrb->bo); + assert(timg->mt); assert(timg->mt->bo); assert(timg->base.Width >= dstx + width); assert(timg->base.Height >= dsty + height); -- 2.30.2