radeon: Assert pointer is not null before dereferencing.
authorVinson Lee <vlee@vmware.com>
Sat, 27 Feb 2010 10:28:00 +0000 (02:28 -0800)
committerVinson Lee <vlee@vmware.com>
Sat, 27 Feb 2010 10:28:00 +0000 (02:28 -0800)
Add back an assert that was removed in commit
cd5f167353f16fb4f5b349002625b704f3e23778.

src/mesa/drivers/dri/radeon/radeon_tex_copy.c

index d6aeb7049f482118146664d4df766e998656de83..18cf182e547b6f8dfec1a37ab4a7163ec276318b 100644 (file)
@@ -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);