aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvoavatar.cpp
diff options
context:
space:
mode:
authorAleric Inglewood2010-10-28 14:45:30 +0200
committerAleric Inglewood2010-10-28 14:45:30 +0200
commitc0547c39f26b3d35f587183fa432434f8a6d2608 (patch)
treeac564c4dfa24057a9b8b9586e8d9f430df514c69 /linden/indra/newview/llvoavatar.cpp
parentOnly initialize WebCore resource(s) on linux. (diff)
parentMerge branch 'weekly' of http://github.com/imprudence/imprudence into weekly (diff)
downloadmeta-impy-c0547c39f26b3d35f587183fa432434f8a6d2608.zip
meta-impy-c0547c39f26b3d35f587183fa432434f8a6d2608.tar.gz
meta-impy-c0547c39f26b3d35f587183fa432434f8a6d2608.tar.bz2
meta-impy-c0547c39f26b3d35f587183fa432434f8a6d2608.tar.xz
Merge branch 'weekly' into webkit_plugins
Diffstat (limited to 'linden/indra/newview/llvoavatar.cpp')
-rw-r--r--linden/indra/newview/llvoavatar.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp
index 76a2761..f039ade 100644
--- a/linden/indra/newview/llvoavatar.cpp
+++ b/linden/indra/newview/llvoavatar.cpp
@@ -5142,12 +5142,6 @@ void LLVOAvatar::updateTextures()
5142 if (texture_dict->mIsLocalTexture) 5142 if (texture_dict->mIsLocalTexture)
5143 { 5143 {
5144 addLocalTextureStats((ETextureIndex)index, imagep, texel_area_ratio, render_avatar, layer_baked[baked_index]); 5144 addLocalTextureStats((ETextureIndex)index, imagep, texel_area_ratio, render_avatar, layer_baked[baked_index]);
5145 // SNOW-8 : temporary snowglobe1.0 fix for baked textures
5146 if (render_avatar && !gGLManager.mIsDisabled )
5147 {
5148 // bind the texture so that its boost level won't be slammed
5149 gGL.getTexUnit(0)->bind(imagep);
5150 }
5151 } 5145 }
5152 else if (texture_dict->mIsBakedTexture) 5146 else if (texture_dict->mIsBakedTexture)
5153 { 5147 {
@@ -5184,8 +5178,14 @@ void LLVOAvatar::addLocalTextureStats( ETextureIndex idx, LLViewerImage* imagep,
5184 F32 desired_pixels; 5178 F32 desired_pixels;
5185 if( mIsSelf ) 5179 if( mIsSelf )
5186 { 5180 {
5187 desired_pixels = llmin(mPixelArea, (F32)TEX_IMAGE_AREA_SELF ); 5181 desired_pixels = llmax(mPixelArea, (F32)TEX_IMAGE_AREA_SELF );
5188 imagep->setBoostLevel(LLViewerImageBoostLevel::BOOST_AVATAR_SELF); 5182 imagep->setBoostLevel(LLViewerImageBoostLevel::BOOST_AVATAR_SELF);
5183 // SNOW-8 : temporary snowglobe1.0 fix for baked textures
5184 if (render_avatar && !gGLManager.mIsDisabled )
5185 {
5186 // bind the texture so that its boost level won't be slammed
5187 gGL.getTexUnit(0)->bind(imagep);
5188 }
5189 } 5189 }
5190 else 5190 else
5191 { 5191 {