mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-26 22:19:17 -06:00
Update Ghoul repository
Prevent reference after delete of the scene when deinitializing the OpenSpaceEngine
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user