projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9db6a70
)
savage: Add assert to check for null pointer dereference.
author
Vinson Lee
<vlee@vmware.com>
Sat, 27 Feb 2010 23:29:44 +0000
(15:29 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Sat, 27 Feb 2010 23:29:44 +0000
(15:29 -0800)
src/mesa/drivers/dri/savage/savagetex.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/savage/savagetex.c
b/src/mesa/drivers/dri/savage/savagetex.c
index 1a748ee1264317e07aa2735dc0b68a5e4ebe9133..1523af4065fc9861e3d3a51a4d5c933cdf77da32 100644
(file)
--- 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;