r128: Add assert to check for null pointer dereference.

This commit is contained in:
Vinson Lee 2010-02-27 16:28:30 -08:00
parent aa4d47f68f
commit a5406444ae

View file

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