TINYGL: Changed the way tinyGL textures are disposed.

This commit is contained in:
Stefano Musumeci 2014-07-25 12:59:51 +02:00
parent f0de01af01
commit 2b3fd8501a
3 changed files with 13 additions and 1 deletions

View file

@ -10,6 +10,15 @@ void tglPresentBuffer() {
}
c->drawCallsQueue.clear();
TinyGL::GLTexture *t = c->shared_state.texture_hash_table[0];
while (t) {
int handle = t->handle;
if (t->disposed) {
TinyGL::free_texture(c, handle);
}
t = t->next;
}
Graphics::Internal::tglCleanupImages();
}