diff --git a/gl.c b/gl.c index 9111ada6df..77ac581213 100644 --- a/gl.c +++ b/gl.c @@ -236,6 +236,7 @@ static bool gl_frame(void *data, const uint16_t* frame, int width, int height) static void gl_free(void *data) { + glDeleteTextures(1, &texture); glfwTerminate(); free(gl_buffer); }