Old work around for a bug we never found...

This commit is contained in:
Aleric Inglewood
2011-05-14 02:45:04 +02:00
parent 74b58b7b3c
commit dc9465a521

View File

@@ -2716,6 +2716,13 @@ void LLViewerFetchedTexture::saveRawImage()
return ;
}
// This shouldn't happen, but it did on Snowglobe 1.5. Better safe than sorry?
if (!mRawImage->getData())
{
llwarns << "mRawImage->getData() returns NULL" << llendl;
return;
}
mSavedRawDiscardLevel = mRawDiscardLevel ;
mSavedRawImage = new LLImageRaw(mRawImage->getData(), mRawImage->getWidth(), mRawImage->getHeight(), mRawImage->getComponents()) ;