diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2010-02-09 12:53:05 -0800 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2010-02-09 12:53:05 -0800 |
commit | 13e395aef2225601124d1df3ec4764859e8718f5 (patch) | |
tree | fd8df536e6b45e383a002d39d3d27857c75195d1 /indra/newview/lltexturefetch.cpp | |
parent | 12358bd95f75ab4a6166604c067d5709639c0d3c (diff) |
more fix for EXT-4352: texture problem in viewer 2.0. fixed texture priority problem.
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; } |