TINYGL: Changed the way tinyGL textures are disposed.
This commit is contained in:
parent
f0de01af01
commit
2b3fd8501a
3 changed files with 13 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue