From 1b390a291920fd6aebad425b3fa5cf9ac06b03a6 Mon Sep 17 00:00:00 2001 From: CobaltXII Date: Fri, 28 Dec 2018 20:57:42 -0500 Subject: [PATCH] The block_shader_program is now deleted on exit --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 1379083..0c89627 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -479,6 +479,8 @@ int main(int argc, char** argv) // Destroy all OpenGL related objects. + glDeleteProgram(block_shader_program); + SDL_GL_DeleteContext(gl_context); // Destroy all SDL related objects.