diff options
author | Steve Bennetts <steve@lindenlab.com> | 2009-11-23 17:49:01 -0800 |
---|---|---|
committer | Steve Bennetts <steve@lindenlab.com> | 2009-11-23 17:49:01 -0800 |
commit | aec42e3fa2d8a1a4f0c07821821c114d72c339a7 (patch) | |
tree | 6317ab4db7bebd3974c77c0226a10cc4cb33f4be /indra/newview/lltexturefetch.cpp | |
parent | 7bfa11ed694f9fffa9d8983f3d60f740d630cfc2 (diff) | |
parent | db79b2d0920bff9bf4f36e8249c0a243581d4c44 (diff) |
merge
Diffstat (limited to 'indra/newview/lltexturefetch.cpp')
-rw-r--r-- | indra/newview/lltexturefetch.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/lltexturefetch.cpp b/indra/newview/lltexturefetch.cpp index 6f3dabe5a7..9bb2a4ad0a 100644 --- a/indra/newview/lltexturefetch.cpp +++ b/indra/newview/lltexturefetch.cpp @@ -931,6 +931,14 @@ bool LLTextureFetchWorker::doWork(S32 param) if (mState == DECODE_IMAGE) { + if (mDesiredDiscard < 0) + { + // We aborted, don't decode + mState = DONE; + setPriority(LLWorkerThread::PRIORITY_LOW | mWorkPriority); + return true; + } + if (mFormattedImage->getDataSize() <= 0) { llerrs << "Decode entered with invalid mFormattedImage. ID = " << mID << llendl; |