Module: Mesa Branch: master Commit: d3004d9156e261d81adcae31d55a4b782433cd6b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d3004d9156e261d81adcae31d55a4b782433cd6b
Author: Vinson Lee <[email protected]> Date: Sat Feb 27 02:28:00 2010 -0800 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 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/radeon/radeon_tex_copy.c b/src/mesa/drivers/dri/radeon/radeon_tex_copy.c index d6aeb70..18cf182 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); _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
