summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAndreyL ProductEngine <alihatskiy@productengine.com>2016-05-06 15:00:19 +0300
committerAndreyL ProductEngine <alihatskiy@productengine.com>2016-05-06 15:00:19 +0300
commit51cf02086a5f172bb49872945aa66e72fd5db561 (patch)
tree525c7612fd43ce93945c45518fd8d63ae6096b3b /indra/newview
parenteae82c8e4794e2d8374dd8d70547b00c5ac4f300 (diff)
MAINT-6376 Disable loading surface textures in the wireframe mode
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/llviewertexture.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp
index c5e07f009f..565e83811f 100755
--- a/indra/newview/llviewertexture.cpp
+++ b/indra/newview/llviewertexture.cpp
@@ -1874,7 +1874,8 @@ bool LLViewerFetchedTexture::updateFetch()
static LLCachedControl<bool> textures_decode_disabled(gSavedSettings,"TextureDecodeDisabled", false);
static LLCachedControl<F32> sCameraMotionThreshold(gSavedSettings,"TextureCameraMotionThreshold", 0.2);
static LLCachedControl<S32> sCameraMotionBoost(gSavedSettings,"TextureCameraMotionBoost", 3);
- if(textures_decode_disabled)
+ if(textures_decode_disabled ||
+ (gUseWireframe && mBoostLevel < LLGLTexture::BOOST_AVATAR_BAKED_SELF)) // don't fetch the surface textures in wireframe mode
{
return false;
}