diff options
author | Mike Antipov <mantipov@productengine.com> | 2010-02-10 15:24:27 +0200 |
---|---|---|
committer | Mike Antipov <mantipov@productengine.com> | 2010-02-10 15:24:27 +0200 |
commit | efee637e3bf1a13591d83e6cbf52acc483a6e61a (patch) | |
tree | c8c00a42d491523dae3c187884e5cb65e01f9a4f /indra/newview/lltexturefetch.cpp | |
parent | d3d389c69898c597746902f3875761f03a419800 (diff) | |
parent | 22dccc74a8fbcf3231d932db39781727833b9259 (diff) |
Merge from default branch
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/lltexturefetch.cpp')
-rw-r--r-- | indra/newview/lltexturefetch.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/lltexturefetch.cpp b/indra/newview/lltexturefetch.cpp index bdc196e16c..4a61130785 100644 --- a/indra/newview/lltexturefetch.cpp +++ b/indra/newview/lltexturefetch.cpp @@ -488,8 +488,9 @@ void LLTextureFetchWorker::setupPacketData() U32 LLTextureFetchWorker::calcWorkPriority() { -// llassert_always(mImagePriority >= 0 && mImagePriority <= LLViewerTexture::maxDecodePriority()); - static F32 PRIORITY_SCALE = (F32)LLWorkerThread::PRIORITY_LOWBITS / LLViewerFetchedTexture::maxDecodePriority(); + //llassert_always(mImagePriority >= 0 && mImagePriority <= LLViewerFetchedTexture::maxDecodePriority()); + static const F32 PRIORITY_SCALE = (F32)LLWorkerThread::PRIORITY_LOWBITS / LLViewerFetchedTexture::maxDecodePriority(); + mWorkPriority = (U32)(mImagePriority * PRIORITY_SCALE); return mWorkPriority; } |