mga: Add assert to check for null pointer dereference.
This commit is contained in:
parent
a5406444ae
commit
689249bcbe
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue