mga: Add assert to check for null pointer dereference.

This commit is contained in:
Vinson Lee 2010-02-27 16:30:49 -08:00
parent a5406444ae
commit 689249bcbe
1 changed files with 1 additions and 0 deletions

View File

@ -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;