adjusting disposing behavs so that we can go back and forth the ingame and titlescr

This commit is contained in:
minjaesong
2019-01-31 00:12:38 +09:00
parent 1475fa08dc
commit b3e323965f
12 changed files with 62 additions and 49 deletions

View File

@@ -401,24 +401,15 @@ object Terrarum : Screen {
AppLoader.getINSTANCE().screen.resume()
}
/** Don't call this! Call AppLoader.dispose() */
override fun dispose() {
AppLoader.getINSTANCE().screen.dispose()
fontGame.dispose()
fontSmallNumbers.dispose()
//dispose any other resources used in this level
shaderBayer.dispose()
shaderSkyboxFill.dispose()
shaderBlur.dispose()
shaderBlendGlow.dispose()
shapeRender.dispose()
batch.dispose()
ingame?.dispose()
}
override fun hide() {