diff options
Diffstat (limited to 'indra/llimage')
-rw-r--r-- | indra/llimage/llimageworker.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/indra/llimage/llimageworker.cpp b/indra/llimage/llimageworker.cpp index 9a200cdf61..75cf24947d 100644 --- a/indra/llimage/llimageworker.cpp +++ b/indra/llimage/llimageworker.cpp @@ -79,10 +79,7 @@ bool LLImageWorker::doWork(S32 param) } else { - S32 nc = param ? 1 : mFormattedImage->getComponents(); - mDecodedImage = new LLImageRaw(mFormattedImage->getWidth(), - mFormattedImage->getHeight(), - nc); + mDecodedImage = new LLImageRaw(); // allow possibly smaller size set during decoding } } if (!decoded) |