diff options
author | Nicky <none@none> | 2012-07-08 12:48:43 +0200 |
---|---|---|
committer | Nicky <none@none> | 2012-07-08 12:48:43 +0200 |
commit | e2fc91714c8526a623e5da0e3d590287bcfa0e54 (patch) | |
tree | 348634bfb64309d1996dc03d4bddfeee90dd2c79 /indra | |
parent | 82c51c8d29d7c9a59373f45fa794bbc0729c97d5 (diff) |
Crashfix: Make sure drawable exists before calling any method on it.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llviewertexture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp index 8eb8717de2..32cf8cc1b3 100644 --- a/indra/newview/llviewertexture.cpp +++ b/indra/newview/llviewertexture.cpp @@ -1904,7 +1904,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()) ; |