diff options
Diffstat (limited to 'linden/indra/newview/llviewerimage.cpp')
-rw-r--r-- | linden/indra/newview/llviewerimage.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/linden/indra/newview/llviewerimage.cpp b/linden/indra/newview/llviewerimage.cpp index c771791..7cac905 100644 --- a/linden/indra/newview/llviewerimage.cpp +++ b/linden/indra/newview/llviewerimage.cpp | |||
@@ -188,6 +188,12 @@ void LLViewerImage::updateClass(const F32 velocity, const F32 angular_velocity) | |||
188 | sDesiredDiscardBias = llclamp(sDesiredDiscardBias, sDesiredDiscardBiasMin, sDesiredDiscardBiasMax); | 188 | sDesiredDiscardBias = llclamp(sDesiredDiscardBias, sDesiredDiscardBiasMin, sDesiredDiscardBiasMax); |
189 | } | 189 | } |
190 | 190 | ||
191 | // static | ||
192 | LLViewerImage* LLViewerImage::getImage(const LLUUID& image_id) | ||
193 | { | ||
194 | return gImageList.getImage(image_id); | ||
195 | } | ||
196 | |||
191 | //---------------------------------------------------------------------------- | 197 | //---------------------------------------------------------------------------- |
192 | 198 | ||
193 | const U32 LLViewerImage::sCurrentFileVersion = 1; | 199 | const U32 LLViewerImage::sCurrentFileVersion = 1; |
@@ -417,7 +423,7 @@ void LLViewerImage::resetTextureStats(BOOL zero) | |||
417 | mMaxVirtualSize = 0.0f; | 423 | mMaxVirtualSize = 0.0f; |
418 | mMaxCosAngle = -1.0f; | 424 | mMaxCosAngle = -1.0f; |
419 | } | 425 | } |
420 | else | 426 | else if (getBoostLevel() != LLViewerImage::BOOST_SCULPTED) //don't decay sculpted prim textures |
421 | { | 427 | { |
422 | mMaxVirtualSize -= mMaxVirtualSize * .10f; // decay by 5%/update | 428 | mMaxVirtualSize -= mMaxVirtualSize * .10f; // decay by 5%/update |
423 | mMaxCosAngle = -1.0f; | 429 | mMaxCosAngle = -1.0f; |