summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-02-27 15:29:44 -0800
committerVinson Lee <[email protected]>2010-02-27 15:29:44 -0800
commit5c007f42a128ad11c8e126443e0f040774901430 (patch)
tree7127f634baed06c2e1c50f201f73e3a849fee978 /src/mesa/drivers
parent9db6a70af583242ba5012f3451cd30a07d16b95f (diff)
savage: Add assert to check for null pointer dereference.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/savage/savagetex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/savage/savagetex.c b/src/mesa/drivers/dri/savage/savagetex.c
index 1a748ee1264..1523af4065f 100644
--- a/src/mesa/drivers/dri/savage/savagetex.c
+++ b/src/mesa/drivers/dri/savage/savagetex.c
@@ -1021,6 +1021,7 @@ static void savageUploadTexImages( savageContextPtr imesa, savageTexObjPtr t )
return;
}
+ assert(t->base.memBlock);
ofs = t->base.memBlock->ofs;
t->setup.physAddr = imesa->savageScreen->textureOffset[heap] + ofs;
t->bufAddr = (GLubyte *)imesa->savageScreen->texVirtual[heap] + ofs;