mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -06:00
Feature/globals handling (#1352)
* Cleaner handling of global state * Prevent Lua memory corruption (closes #982) * Initialize glfw first thing to prevent weird joystick loading bug during startup
This commit is contained in:
@@ -110,7 +110,7 @@ SceneGraphLightSource::SceneGraphLightSource(const ghoul::Dictionary& dictionary
|
||||
|
||||
_sceneGraphNodeReference.onChange([this]() {
|
||||
_sceneGraphNode =
|
||||
global::renderEngine.scene()->sceneGraphNode(_sceneGraphNodeReference);
|
||||
global::renderEngine->scene()->sceneGraphNode(_sceneGraphNodeReference);
|
||||
});
|
||||
|
||||
}
|
||||
@@ -119,7 +119,7 @@ bool SceneGraphLightSource::initialize() {
|
||||
ZoneScoped
|
||||
|
||||
_sceneGraphNode =
|
||||
global::renderEngine.scene()->sceneGraphNode(_sceneGraphNodeReference);
|
||||
global::renderEngine->scene()->sceneGraphNode(_sceneGraphNodeReference);
|
||||
return _sceneGraphNode != nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user