mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-10 15:28:36 -05: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:
@@ -200,7 +200,7 @@ void RenderableFieldlines::initializeGL() {
|
||||
throw ghoul::RuntimeError("Error initializing");
|
||||
}
|
||||
|
||||
_program = global::renderEngine.buildRenderProgram(
|
||||
_program = global::renderEngine->buildRenderProgram(
|
||||
"Fieldline",
|
||||
absPath("${MODULE_FIELDLINES}/shaders/fieldline_vs.glsl"),
|
||||
absPath("${MODULE_FIELDLINES}/shaders/fieldline_fs.glsl"),
|
||||
@@ -215,7 +215,7 @@ void RenderableFieldlines::deinitializeGL() {
|
||||
_vertexPositionBuffer = 0;
|
||||
|
||||
if (_program) {
|
||||
global::renderEngine.removeRenderProgram(_program.get());
|
||||
global::renderEngine->removeRenderProgram(_program.get());
|
||||
_program = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user