summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-02-27 16:28:30 -0800
committerVinson Lee <vlee@vmware.com>2010-02-27 16:28:30 -0800
commita5406444aeeef40c899a4159a1fae6d1501bc1cb (patch)
treed5266fe8031566ac31f4e4454aeaa1f93577f438 /src/mesa/drivers
parentaa4d47f68f992f8bbe843822c9f75dce9e8706f8 (diff)
r128: Add assert to check for null pointer dereference.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/r128/r128_texmem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r128/r128_texmem.c b/src/mesa/drivers/dri/r128/r128_texmem.c
index 5eec8c08cd..412f6d4255 100644
--- a/src/mesa/drivers/dri/r128/r128_texmem.c
+++ b/src/mesa/drivers/dri/r128/r128_texmem.c
@@ -260,6 +260,7 @@ void r128UploadTexImages( r128ContextPtr rmesa, r128TexObjPtr t )
}
/* Set the base offset of the texture image */
+ assert(t->base.memBlock);
t->bufAddr = rmesa->r128Screen->texOffset[heap]
+ t->base.memBlock->ofs;