summaryrefslogtreecommitdiff
path: root/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2021-09-20 13:19:20 +0100
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2021-09-20 13:19:20 +0100
commitc10d601ce8d2a6ca7e354772a217a998cd9865b3 (patch)
tree7354113b30b20c879dec9f308c2d2c79224be31e /indra/newview/llappviewer.cpp
parent0918958507c9140cca0f4026ecef210eac9aef3a (diff)
SL-15999 - track --noninteractive state with gNonInteractive flag
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r--indra/newview/llappviewer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index 6ff9b2b2eb..970bc0a83d 100644
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -1557,8 +1557,7 @@ bool LLAppViewer::doFrame()
ms_sleep(yield_time);
}
- static LLCachedControl<bool> s_non_interactive(gSavedSettings, "NonInteractive", false);
- if (s_non_interactive)
+ if (gNonInteractive)
{
S32 non_interactive_ms_sleep_time = 1000;
LLAppViewer::getTextureCache()->pause();
@@ -2979,6 +2978,7 @@ bool LLAppViewer::initWindow()
// store setting in a global for easy access and modification
gHeadlessClient = gSavedSettings.getBOOL("HeadlessClient");
+ gNonInteractive = gSavedSettings.getBOOL("NonInteractive");
// always start windowed
BOOL ignorePixelDepth = gSavedSettings.getBOOL("IgnorePixelDepth");