mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-12 06:19:57 -05:00
Add additional check for GUI shader compilation
This commit is contained in:
+1
-1
Submodule ext/ghoul updated: 8e787753ab...627e9a4371
@@ -301,6 +301,10 @@ void GUI::initialize() {
|
||||
void GUI::initializeGL() {
|
||||
_program = ghoul::opengl::ProgramObject::Build("GUI",
|
||||
"${SHADERS}/gui_vs.glsl", "${SHADERS}/gui_fs.glsl");
|
||||
if (!_program) {
|
||||
LERROR("Could not load program object for GUI");
|
||||
return;
|
||||
}
|
||||
|
||||
positionLocation = glGetAttribLocation(*_program, "in_position");
|
||||
uvLocation = glGetAttribLocation(*_program, "in_uv");
|
||||
|
||||
Reference in New Issue
Block a user