From: Vinson Lee Date: Sat, 27 Feb 2010 10:28:00 +0000 (-0800) Subject: radeon: Assert pointer is not null before dereferencing. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d3004d9156e261d81adcae31d55a4b782433cd6b;p=mesa.git radeon: Assert pointer is not null before dereferencing. Add back an assert that was removed in commit cd5f167353f16fb4f5b349002625b704f3e23778. --- 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);