diff --git a/graphics/tinygl/init.cpp b/graphics/tinygl/init.cpp index 69671d544f9..0c7025ee5ca 100644 --- a/graphics/tinygl/init.cpp +++ b/graphics/tinygl/init.cpp @@ -237,6 +237,8 @@ void glInit(void *zbuffer1, int textureSize) { void glClose() { GLContext *c = gl_get_context(); + Graphics::Internal::tglCleanupImages(); + specbuf_cleanup(c); for (int i = 0; i < 3; i++) gl_free(c->matrix_stack[i]);