summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i810
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-02-27 16:41:49 -0800
committerVinson Lee <[email protected]>2010-02-27 16:41:49 -0800
commit975f105bb88fe6c146c091556f142e733885c91a (patch)
treed036cb90dfa24218a6b1a1729b7c42df1b58f44d /src/mesa/drivers/dri/i810
parentb45af1ec61473ad3a576fc0cb564a4f71fbab7f5 (diff)
i810: Add assert to check for null pointer dereference.
Diffstat (limited to 'src/mesa/drivers/dri/i810')
-rw-r--r--src/mesa/drivers/dri/i810/i810texmem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i810/i810texmem.c b/src/mesa/drivers/dri/i810/i810texmem.c
index bb426a41122..6e6b21cf2b9 100644
--- a/src/mesa/drivers/dri/i810/i810texmem.c
+++ b/src/mesa/drivers/dri/i810/i810texmem.c
@@ -155,6 +155,7 @@ int i810UploadTexImagesLocked( i810ContextPtr imesa, i810TextureObjectPtr t )
return -1;
}
+ assert(t->base.memBlock);
ofs = t->base.memBlock->ofs;
t->BufAddr = imesa->i810Screen->tex.map + ofs;
t->Setup[I810_TEXREG_MI3] = imesa->i810Screen->textureOffset + ofs;