mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 03:29:44 -06:00
Fix crash that occurs if there is an error in the SGCT configuration file
This commit is contained in:
@@ -408,9 +408,15 @@ void GUI::deinitializeGL() {
|
||||
_program = nullptr;
|
||||
_fontTexture = nullptr;
|
||||
|
||||
glDeleteVertexArrays(1, &vao);
|
||||
glDeleteBuffers(1, &vbo);
|
||||
glDeleteBuffers(1, &vboElements);
|
||||
if (vao) {
|
||||
glDeleteVertexArrays(1, &vao);
|
||||
}
|
||||
if (vbo) {
|
||||
glDeleteBuffers(1, &vbo);
|
||||
}
|
||||
if (vboElements) {
|
||||
glDeleteBuffers(1, &vboElements);
|
||||
}
|
||||
|
||||
_iswa.deinitializeGL();
|
||||
_help.deinitializeGL();
|
||||
|
||||
Reference in New Issue
Block a user