diff options
author | Vinson Lee <[email protected]> | 2010-02-27 16:28:30 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-02-27 16:28:30 -0800 |
commit | a5406444aeeef40c899a4159a1fae6d1501bc1cb (patch) | |
tree | d5266fe8031566ac31f4e4454aeaa1f93577f438 /src/mesa/drivers | |
parent | aa4d47f68f992f8bbe843822c9f75dce9e8706f8 (diff) |
r128: Add assert to check for null pointer dereference.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/r128/r128_texmem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r128/r128_texmem.c b/src/mesa/drivers/dri/r128/r128_texmem.c index 5eec8c08cd6..412f6d42551 100644 --- a/src/mesa/drivers/dri/r128/r128_texmem.c +++ b/src/mesa/drivers/dri/r128/r128_texmem.c @@ -260,6 +260,7 @@ void r128UploadTexImages( r128ContextPtr rmesa, r128TexObjPtr t ) } /* Set the base offset of the texture image */ + assert(t->base.memBlock); t->bufAddr = rmesa->r128Screen->texOffset[heap] + t->base.memBlock->ofs; |