Safe and probably pointless crash workarounds from FS and LL

This commit is contained in:
Siana Gearz
2012-08-13 06:14:16 +02:00
parent 7335ae548c
commit 6b8c58e3b5
6 changed files with 20 additions and 5 deletions

View File

@@ -1891,7 +1891,7 @@ void LLViewerFetchedTexture::updateVirtualSize()
for(U32 i = 0 ; i < mNumFaces ; i++)
{
LLFace* facep = mFaceList[i] ;
if(facep->getDrawable()->isRecentlyVisible())
if(facep && facep->getDrawable() && facep->getDrawable()->isRecentlyVisible())
{
addTextureStats(facep->getVirtualSize()) ;
setAdditionalDecodePriority(facep->getImportanceToCamera()) ;