Crashfix: Make sure drawable exits before calling any method on it.

Nicky 2012-07-08 12:48:43 +02:00
parent 5b893086f7
commit c9d32bce39
1 changed files with 5 additions and 0 deletions

View File

@ -1892,6 +1892,11 @@ void LLViewerFetchedTexture::updateVirtualSize()
for(U32 i = 0 ; i < mNumFaces ; i++)
{
LLFace* facep = mFaceList[i] ;
// <FS:ND> Make sure we have a drawable before calling any method on it
if( !facep || !facep->getDrawable() )
continue;
// </FS:ND>
if(facep->getDrawable()->isRecentlyVisible())
{
addTextureStats(facep->getVirtualSize()) ;