summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-02-27 02:28:00 -0800
committerVinson Lee <vlee@vmware.com>2010-02-27 02:28:00 -0800
commitd3004d9156e261d81adcae31d55a4b782433cd6b (patch)
tree8b79e157e6a7e8fed8c2a2198be210495abe36fc /src
parente63f532d26d82c06281840a84c73e2e36d7b3e1e (diff)
radeon: Assert pointer is not null before dereferencing.
Add back an assert that was removed in commit cd5f167353f16fb4f5b349002625b704f3e23778.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_tex_copy.c1
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 d6aeb7049f..18cf182e54 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);