diff options
| author | Rider Linden <none@none> | 2015-04-15 11:54:18 -0700 |
|---|---|---|
| committer | Rider Linden <none@none> | 2015-04-15 11:54:18 -0700 |
| commit | 109e2db131514de43a2d61da1cc4ee78dc89f858 (patch) | |
| tree | 217ca4b42ee516dab39198661e2bc91514a5a8e5 /indra/llimage | |
| parent | 176d8cd268611e28c07a462df3027f4872456e5a (diff) | |
| parent | 82ae214f6a367e17dd335e80e2444cf672108821 (diff) | |
Merge
Diffstat (limited to 'indra/llimage')
| -rwxr-xr-x | indra/llimage/llimageworker.cpp | 5 | ||||
| -rwxr-xr-x | indra/llimage/tests/llimageworker_test.cpp | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/indra/llimage/llimageworker.cpp b/indra/llimage/llimageworker.cpp index c8b0e872f6..4875fe7001 100755 --- a/indra/llimage/llimageworker.cpp +++ b/indra/llimage/llimageworker.cpp @@ -143,7 +143,8 @@ bool LLImageDecodeThread::ImageRequest::processRequest() mFormattedImage->getComponents()); } done = mFormattedImage->decode(mDecodedImageRaw, decode_time_slice); // 1ms - mDecodedRaw = done; + // some decoders are removing data when task is complete and there were errors + mDecodedRaw = done && mDecodedImageRaw->getData(); } if (done && mNeedsAux && !mDecodedAux && mFormattedImage.notNull()) { @@ -155,7 +156,7 @@ bool LLImageDecodeThread::ImageRequest::processRequest() 1); } done = mFormattedImage->decodeChannels(mDecodedImageAux, decode_time_slice, 4, 4); // 1ms - mDecodedAux = done; + mDecodedAux = done && mDecodedImageAux->getData(); } return done; diff --git a/indra/llimage/tests/llimageworker_test.cpp b/indra/llimage/tests/llimageworker_test.cpp index c030b105fb..51c5c63556 100755 --- a/indra/llimage/tests/llimageworker_test.cpp +++ b/indra/llimage/tests/llimageworker_test.cpp @@ -67,6 +67,8 @@ LLImageRaw::~LLImageRaw() { } void LLImageRaw::deleteData() { } U8* LLImageRaw::allocateData(S32 size) { return NULL; } U8* LLImageRaw::reallocateData(S32 size) { return NULL; } +const U8* LLImageBase::getData() const { return NULL; } +U8* LLImageBase::getData() { return NULL; } // End Stubbing // ------------------------------------------------------------------------------------------- |
