From 315552d1e08c66709a4db6acf5a933529f4c438c Mon Sep 17 00:00:00 2001 From: Aleric Inglewood Date: Wed, 1 Feb 2012 03:34:19 +0100 Subject: [PATCH] Allow main window to be unfocused during startup in debug mode. --- indra/newview/llstartup.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index d678dc490..cddfdf3e6 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -2766,6 +2766,11 @@ bool idle_startup() LL_DEBUGS("AppInit") << "Initialization complete" << LL_ENDL; gRenderStartTime.reset(); + // We're not allowed to call reset() when paused, and we might or might not be paused depending on + // whether or not the main window lost focus before we get here (see LLViewerWindow::handleFocusLost). + // The simplest, legal way to make sure we're unpaused is to just pause/unpause here. + gForegroundTime.pause(); + gForegroundTime.unpause(); gForegroundTime.reset(); if (gSavedSettings.getBOOL("FetchInventoryOnLogin")