mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-18 02:08:23 +02:00
r128: Add assert to check for null pointer dereference.
This commit is contained in:
parent
aa4d47f68f
commit
a5406444ae
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue