destroy all images when closing

This commit is contained in:
yugecin
2017-01-18 19:33:58 +01:00
parent a02613bb76
commit 156026bd9b
2 changed files with 33 additions and 0 deletions

View File

@@ -212,6 +212,8 @@ public class DisplayContainer implements ErrorDumpable, KeyListener, MouseListen
}
public void teardown() {
InternalTextureLoader.get().clear();
GameImage.destroyAll();
Display.destroy();
}