mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-04 10:40:09 -06:00
Add additional check for GUI shader compilation
This commit is contained in:
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