proper disposal issue fixed; error while screen is not paused but not

renrendering (ex. dragging window) fixed;
This commit is contained in:
2018-08-11 16:15:47 -05:00
parent f2a60ea490
commit 30567e086c
4 changed files with 17 additions and 18 deletions

View File

@@ -193,13 +193,13 @@ public class RhythmBullet extends Game {
public void dispose() {
Gdx.app.debug("Core", "disposing...");
try {
getScreen().dispose();
skinAtlas.dispose();
getSkin().dispose();
assetManager.dispose();
getScreen().dispose();
assetPack.dispose();
} catch (NullPointerException npe) {
//Means the game was closed before everything was initiated.
Gdx.app.debug("Core", "Disposal error occurred, possibly caused by failing to complete initialization.", npe);
}
super.dispose();
}