summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-02-27 16:30:49 -0800
committerVinson Lee <[email protected]>2010-02-27 16:30:49 -0800
commit689249bcbe96e2655aac29569ba36554bee1c503 (patch)
tree7f30b39e672d7199758db6612cd5c6faf9ba0ce1 /src/mesa/drivers/dri
parenta5406444aeeef40c899a4159a1fae6d1501bc1cb (diff)
mga: Add assert to check for null pointer dereference.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/mga/mgatexmem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/mga/mgatexmem.c b/src/mesa/drivers/dri/mga/mgatexmem.c
index 47be6f3c185..58afbbb279e 100644
--- a/src/mesa/drivers/dri/mga/mgatexmem.c
+++ b/src/mesa/drivers/dri/mga/mgatexmem.c
@@ -222,6 +222,7 @@ int mgaUploadTexImages( mgaContextPtr mmesa, mgaTextureObjectPtr t )
return -1;
}
+ assert(t->base.memBlock);
ofs = mmesa->mgaScreen->textureOffset[ heap ]
+ t->base.memBlock->ofs;