mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 16:00:24 +01:00
mga: Add assert to check for null pointer dereference.
This commit is contained in:
parent
a5406444ae
commit
689249bcbe
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue