summaryrefslogtreecommitdiff
path: root/indra/newview/llviewertexturelist.cpp
diff options
context:
space:
mode:
authorCosmic Linden <cosmic@lindenlab.com>2024-10-03 18:25:37 -0700
committerCosmic Linden <cosmic@lindenlab.com>2024-10-03 18:25:37 -0700
commitde95bd3187b61ca1152c14bc9bd112da61027d4c (patch)
tree0f76dfa9c33153beee71cd10da49114f321eb81c /indra/newview/llviewertexturelist.cpp
parent322b4fb9c4c37787bd219dd97012f121309d591a (diff)
secondlife/viewer#2472: Also don't persist local file enumeration beyond next session
Diffstat (limited to 'indra/newview/llviewertexturelist.cpp')
-rw-r--r--indra/newview/llviewertexturelist.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp
index 4c13105d5d..752cfb3884 100644
--- a/indra/newview/llviewertexturelist.cpp
+++ b/indra/newview/llviewertexturelist.cpp
@@ -447,8 +447,7 @@ LLViewerFetchedTexture* LLViewerTextureList::getImageFromFile(const std::string&
std::string url = "file://" + full_path;
LLViewerFetchedTexture* tex = getImageFromUrl(url, f_type, usemipmaps, boost_priority, texture_type, internal_format, primary_format, force_id);
- static LLCachedControl<bool> debug_texture_label(gSavedSettings, "RenderDebugTextureLabelLocalFiles", false);
- if (debug_texture_label())
+ if (gDebugTextureLabelLocalFilesSession)
{
gTextureList.mNameTextureList.push_back(LLViewerTextureList::NameElement(tex, filename));
}