diff options
author | Vinson Lee <[email protected]> | 2010-02-27 16:30:49 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-02-27 16:30:49 -0800 |
commit | 689249bcbe96e2655aac29569ba36554bee1c503 (patch) | |
tree | 7f30b39e672d7199758db6612cd5c6faf9ba0ce1 /src/mesa/drivers/dri | |
parent | a5406444aeeef40c899a4159a1fae6d1501bc1cb (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.c | 1 |
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; |