Fix crash when adding layers through globebrowsing interface due to missing initialization

Fix crash that would happen if the resetting of the tile layer would throw an exception
This commit is contained in:
Alexander Bock
2017-11-09 12:01:35 -05:00
parent 88cf7926ae
commit 5f391de33c
8 changed files with 29 additions and 15 deletions

View File

@@ -679,6 +679,8 @@ void OpenSpaceEngine::loadScene(const std::string& scenePath) {
_loadingScreen->render();
}
_windowWrapper->swapBuffer();
t.join();
_loadingScreen = nullptr;