summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-10-28 11:03:09 -0600
committerXiaohong Bao <bao@lindenlab.com>2013-10-28 11:03:09 -0600
commit81fecfa9f7e8664ec4f3bcf6662fe34d4e5d41a1 (patch)
tree5e5fccdcde9e23a9779914ee27b5b997165a9850 /indra
parent8144372762ec084f4638a0984cc61d86777ac359 (diff)
parent854aec1231ff3bd579ae6aec2302c8f9e1d7d958 (diff)
Automated merge with https://bitbucket.org/lindenlab/sunshine-internal
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/llviewertexture.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp
index 1f42590884..f22074a8d6 100755
--- a/indra/newview/llviewertexture.cpp
+++ b/indra/newview/llviewertexture.cpp
@@ -1889,7 +1889,7 @@ bool LLViewerFetchedTexture::updateFetch()
if ((decode_priority > 0) && (mRawDiscardLevel < 0 || mRawDiscardLevel == INVALID_DISCARD_LEVEL))
{
// We finished but received no data
- if (current_discard < 0)
+ if (getDiscardLevel() < 0)
{
if (getFTType() != FTT_MAP_TILE)
{
@@ -1906,8 +1906,17 @@ bool LLViewerFetchedTexture::updateFetch()
else
{
//llwarns << mID << ": Setting min discard to " << current_discard << llendl;
- mMinDiscardLevel = current_discard;
- desired_discard = current_discard;
+ if(current_discard >= 0)
+ {
+ mMinDiscardLevel = current_discard;
+ desired_discard = current_discard;
+ }
+ else
+ {
+ S32 dis_level = getDiscardLevel();
+ mMinDiscardLevel = dis_level;
+ desired_discard = dis_level;
+ }
}
destroyRawImage();
}