summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2010-03-17 16:41:28 -0600
committerXiaohong Bao <bao@lindenlab.com>2010-03-17 16:41:28 -0600
commit56ccf4d0befca4c98d1d13f757b515bde1d3e262 (patch)
treea41fa793c83548a7cd55cd0524a0a9dba77bed3c /indra
parent8e1f7ecaf3b1eebc1ca60ecb6e04412f39083d82 (diff)
fix for EXT-6420: crash at LLImageRaw::LLImageRaw [secondlife-bin llimage.cpp:271]
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llviewertexture.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp
index 133b6ee8c9..dbbf0219c9 100644
--- a/indra/newview/llviewertexture.cpp
+++ b/indra/newview/llviewertexture.cpp
@@ -2262,11 +2262,14 @@ void LLViewerFetchedTexture::destroyRawImage()
{
sRawCount--;
- if(mForceToSaveRawImage)
+ if(mIsRawImageValid)
{
- saveRawImage() ;
- }
- setCachedRawImage() ;
+ if(mForceToSaveRawImage)
+ {
+ saveRawImage() ;
+ }
+ setCachedRawImage() ;
+ }
}
mRawImage = NULL;