diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2016-10-11 10:59:17 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2016-10-11 10:59:17 -0400 |
commit | 704c53b3c506c1274981b3e1ca5a22c16e4fbbb4 (patch) | |
tree | 258785e6ebcd41009e6ef160a5d7b8e9ed218f94 /indra/newview/llappviewermacosx.cpp | |
parent | eb8961235f7dcb03e3fe8ae2d02929d97cc5d7d7 (diff) | |
parent | 086c1342152895da28d2e0130d09432152604ca8 (diff) |
MAINT-5232: Merge up to VLC viewer from viewer-release
Diffstat (limited to 'indra/newview/llappviewermacosx.cpp')
-rw-r--r-- | indra/newview/llappviewermacosx.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/newview/llappviewermacosx.cpp b/indra/newview/llappviewermacosx.cpp index ca219fda59..4fe1e31668 100644 --- a/indra/newview/llappviewermacosx.cpp +++ b/indra/newview/llappviewermacosx.cpp @@ -117,12 +117,17 @@ void handleQuit() LLAppViewer::instance()->userQuit(); } -bool runMainLoop() +// This function is called pumpMainLoop() rather than runMainLoop() because +// it passes control to the viewer's main-loop logic for a single frame. Like +// LLAppViewer::frame(), it returns 'true' when it's done. Until then, it +// expects to be called again by the timer in LLAppDelegate +// (llappdelegate-objc.mm). +bool pumpMainLoop() { bool ret = LLApp::isQuitting(); if (!ret && gViewerAppPtr != NULL) { - ret = gViewerAppPtr->mainLoop(); + ret = gViewerAppPtr->frame(); } else { ret = true; } |