mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-14 16:01:30 -06:00
Fix for GUI on multi-node setups.
Reinstated tests for _isMaster and isRegularRendering() with GUI to prevent slave crashes
This commit is contained in:
@@ -816,14 +816,13 @@ void OpenSpaceEngine::postDraw() {
|
||||
bool showGui = _windowWrapper->hasGuiWindow() ? _windowWrapper->isGuiWindow() : true;
|
||||
if (showGui) {
|
||||
_renderEngine->renderScreenLog();
|
||||
|
||||
if (_console->isVisible())
|
||||
_console->render();
|
||||
#ifdef OPENSPACE_MODULE_ONSCREENGUI_ENABLED
|
||||
if (_gui->isEnabled())
|
||||
if (_gui->isEnabled() && _isMaster && _windowWrapper->isRegularRendering())
|
||||
_gui->endFrame();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
if (_isInShutdownMode)
|
||||
_renderEngine->renderShutdownInformation(_shutdownCountdown, _shutdownWait);
|
||||
|
||||
Reference in New Issue
Block a user