diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2009-12-29 18:18:52 -0700 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2009-12-29 18:18:52 -0700 |
commit | 904de223b6da701e2512b8d8bf0d3be478421c78 (patch) | |
tree | 4df740f788f9ad130751760fcfc43db52ba47351 /indra/newview/llviewertexture.cpp | |
parent | 10c66905613b91e6b3cf1fd3f8455a8ed8e243a4 (diff) |
for DEV-44376: create a switch for texture decoding.
Diffstat (limited to 'indra/newview/llviewertexture.cpp')
-rw-r--r-- | indra/newview/llviewertexture.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp index dffd654a70..b1ad01f54f 100644 --- a/indra/newview/llviewertexture.cpp +++ b/indra/newview/llviewertexture.cpp @@ -1591,6 +1591,12 @@ void LLViewerFetchedTexture::updateVirtualSize() bool LLViewerFetchedTexture::updateFetch() { + static LLCachedControl<bool> textures_decode_disabled(gSavedSettings,"TextureDecodeDisabled"); + if(textures_decode_disabled) + { + return false ; + } + mFetchState = 0; mFetchPriority = 0; mFetchDeltaTime = 999999.f; |