TINYGL: Free draw call lists in glClose.

This commit is contained in:
Vincent Pelletier 2016-07-25 01:18:11 +02:00
parent 3221146de9
commit 47a1e826e7
3 changed files with 17 additions and 0 deletions

View file

@ -28,6 +28,7 @@
#include "graphics/tinygl/zgl.h"
#include "graphics/tinygl/zblit.h"
#include "graphics/tinygl/zdirtyrect.h"
namespace TinyGL {
@ -243,6 +244,7 @@ void glInit(void *zbuffer1, int textureSize) {
void glClose() {
GLContext *c = gl_get_context();
tglDisposeDrawCallLists(c);
Graphics::Internal::tglCleanupImages();
specbuf_cleanup(c);