Update Ghoul repository

Prevent reference after delete of the scene when deinitializing the OpenSpaceEngine
This commit is contained in:
Alexander Bock
2018-10-20 13:34:34 +02:00
parent 700fd60295
commit 4cfedf0f65
3 changed files with 3 additions and 2 deletions

View File

@@ -816,6 +816,7 @@ void OpenSpaceEngine::deinitializeGL() {
global::openSpaceEngine.assetManager().deinitialize();
global::openSpaceEngine._scene = nullptr;
global::renderEngine.setScene(nullptr);
for (const std::function<void()>& func : global::callback::deinitializeGL) {
func();