TINYGL: Free BlitImage memory on close.
This commit is contained in:
parent
97dc3881e0
commit
db8cee2a69
1 changed files with 2 additions and 0 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue