proper disposal issue fixed; error while screen is not paused but not
renrendering (ex. dragging window) fixed;
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user