aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llrender/llimagegl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llrender/llimagegl.cpp')
-rw-r--r--linden/indra/llrender/llimagegl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/linden/indra/llrender/llimagegl.cpp b/linden/indra/llrender/llimagegl.cpp
index d9b22c5..a41b931 100644
--- a/linden/indra/llrender/llimagegl.cpp
+++ b/linden/indra/llrender/llimagegl.cpp
@@ -154,7 +154,7 @@ void LLImageGL::destroyGL(BOOL save_state)
154 LLImageGL* glimage = *iter; 154 LLImageGL* glimage = *iter;
155 if (glimage->mTexName && glimage->mComponents) 155 if (glimage->mTexName && glimage->mComponents)
156 { 156 {
157 if (save_state) 157 if (save_state && glimage->isInitialized())
158 { 158 {
159 glimage->mSaveData = new LLImageRaw; 159 glimage->mSaveData = new LLImageRaw;
160 glimage->readBackRaw(glimage->mCurrentDiscardLevel, glimage->mSaveData, false); 160 glimage->readBackRaw(glimage->mCurrentDiscardLevel, glimage->mSaveData, false);