diff options
| author | Xiaohong Bao <bao@lindenlab.com> | 2010-06-07 15:34:43 -0600 |
|---|---|---|
| committer | Xiaohong Bao <bao@lindenlab.com> | 2010-06-07 15:34:43 -0600 |
| commit | 80b3884a6add8600d8d13d7b72018ec85337cd7e (patch) | |
| tree | 2db75197db34091ff92f271e55da3fecf5c1a1f6 /indra/newview/llvoavatarself.cpp | |
| parent | b1e9c9bab085c55bab217a641716a40b8d44ed9e (diff) | |
more for EXT-7500: PARTIAL FIXED: Texture Jamming problems with http texture off.
Raise priorities of textures for self avatar to the highest.
Diffstat (limited to 'indra/newview/llvoavatarself.cpp')
| -rw-r--r-- | indra/newview/llvoavatarself.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llvoavatarself.cpp b/indra/newview/llvoavatarself.cpp index 2722646eff..91a5c50b50 100644 --- a/indra/newview/llvoavatarself.cpp +++ b/indra/newview/llvoavatarself.cpp @@ -2036,8 +2036,13 @@ void LLVOAvatarSelf::addLocalTextureStats( ETextureIndex type, LLViewerFetchedTe F32 desired_pixels; desired_pixels = llmin(mPixelArea, (F32)getTexImageArea()); imagep->setBoostLevel(getAvatarBoostLevel()); + + imagep->resetTextureStats(); + imagep->setResetMaxVirtualSizeFlag(false) ; imagep->addTextureStats( desired_pixels / texel_area_ratio ); + imagep->setAdditionalDecodePriority(1.0f) ; imagep->forceUpdateBindStats() ; + if (imagep->getDiscardLevel() < 0) { mHasGrey = TRUE; // for statistics gathering |
