summaryrefslogtreecommitdiff
path: root/indra/newview/lltextureview.cpp
diff options
context:
space:
mode:
authorJosh Bell <josh@lindenlab.com>2007-03-31 01:41:19 +0000
committerJosh Bell <josh@lindenlab.com>2007-03-31 01:41:19 +0000
commitea8fb7238e6f12383ee4bc081475fa6235637581 (patch)
treef384da93c884353bef55cf887f6c86f2081db271 /indra/newview/lltextureview.cpp
parentffc6680d956069625fc1fe5da133bdf7922cea83 (diff)
svn merge -r 59364:59813 svn+ssh://svn.lindenlab.com/svn/linden/branches/maintenance --> release
Diffstat (limited to 'indra/newview/lltextureview.cpp')
-rw-r--r--indra/newview/lltextureview.cpp37
1 files changed, 14 insertions, 23 deletions
diff --git a/indra/newview/lltextureview.cpp b/indra/newview/lltextureview.cpp
index b75e379755..683f8b56cf 100644
--- a/indra/newview/lltextureview.cpp
+++ b/indra/newview/lltextureview.cpp
@@ -129,21 +129,18 @@ void LLTextureBar::draw()
}
else if (mHilite)
{
- S32 idx = llclamp(mHilite,1,4);
- if (idx==1) color = LLColor4::yellow;
- else color = LLColor4::orange;
- }
- else if (mImagep->getBoostLevel())
- {
- color = LLColor4::magenta;
+ S32 idx = llclamp(mHilite,1,3);
+ if (idx==1) color = LLColor4::orange;
+ else if (idx==2) color = LLColor4::yellow;
+ else color = LLColor4::pink2;
}
else if (mImagep->mDontDiscard)
{
- color = LLColor4::pink2;
+ color = LLColor4::green4;
}
- else if (!mImagep->getUseMipMaps())
+ else if (mImagep->getBoostLevel())
{
- color = LLColor4::green4;
+ color = LLColor4::magenta;
}
else if (mImagep->getDecodePriority() == 0.0f)
{
@@ -577,6 +574,9 @@ void LLTextureView::draw()
{
LLPointer<LLViewerImage> imagep = *iter++;
+ S32 cur_discard = imagep->getDiscardLevel();
+ S32 desired_discard = imagep->mDesiredDiscardLevel;
+
if (mPrintList)
{
llinfos << imagep->getID()
@@ -585,7 +585,7 @@ void LLTextureView::draw()
<< "\t" << imagep->getDecodePriority()
<< "\t" << imagep->getWidth()
<< "\t" << imagep->getHeight()
- << "\t" << imagep->getDiscardLevel()
+ << "\t" << cur_discard
<< llendl;
}
@@ -614,7 +614,7 @@ void LLTextureView::draw()
if (sDebugImages.find(imagep) != sDebugImages.end())
{
- pri += 3*HIGH_PRIORITY;
+ pri += 4*HIGH_PRIORITY;
}
if (!mOrderFetch)
@@ -629,14 +629,14 @@ void LLTextureView::draw()
{
if (imagep == objectp->getTEImage(te))
{
- pri += 2*HIGH_PRIORITY;
+ pri += 3*HIGH_PRIORITY;
break;
}
}
}
#endif
#if 1
- if (pri < HIGH_PRIORITY)
+ if (pri < HIGH_PRIORITY && (cur_discard< 0 || desired_discard < cur_discard))
{
LLViewerObject *objectp = gHoverView->getLastHoverObject();
if (objectp)
@@ -653,15 +653,6 @@ void LLTextureView::draw()
}
}
#endif
-#if 0
- if (pri < HIGH_PRIORITY)
- {
- if (imagep->mBoostPriority)
- {
- pri += 4*HIGH_PRIORITY;
- }
- }
-#endif
#if 1
if (pri > 0.f && pri < HIGH_PRIORITY)
{