From b0db080dc0d05aa9dcd8a2abdb9980217ee62e8a Mon Sep 17 00:00:00 2001 From: CobaltXII Date: Fri, 28 Dec 2018 21:25:20 -0500 Subject: [PATCH] The block_texture_array 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 98f654c..1cbc997 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -494,6 +494,8 @@ int main(int argc, char** argv) // Destroy all OpenGL related objects. + glDeleteTextures(1, &block_texture_array); + glDeleteProgram(block_shader_program); SDL_GL_DeleteContext(gl_context);