mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-08 12:30:00 -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:
@@ -133,7 +133,7 @@ bool RenderableCrawlingLine::isReady() const {
|
||||
}
|
||||
|
||||
void RenderableCrawlingLine::initializeGL() {
|
||||
_program = global::renderEngine.buildRenderProgram(
|
||||
_program = global::renderEngine->buildRenderProgram(
|
||||
"RenderableCrawlingLine",
|
||||
absPath("${MODULE_SPACECRAFTINSTRUMENTS}/shaders/crawlingline_vs.glsl"),
|
||||
absPath("${MODULE_SPACECRAFTINSTRUMENTS}/shaders/crawlingline_fs.glsl")
|
||||
@@ -169,7 +169,7 @@ void RenderableCrawlingLine::deinitializeGL() {
|
||||
_vbo = 0;
|
||||
|
||||
if (_program) {
|
||||
global::renderEngine.removeRenderProgram(_program.get());
|
||||
global::renderEngine->removeRenderProgram(_program.get());
|
||||
_program = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user