particles must be disposed of before overwritten

This commit is contained in:
minjaesong
2022-01-27 12:35:50 +09:00
parent 82897e0d6c
commit 119b7fc022
4 changed files with 5 additions and 1543 deletions

View File

@@ -152,6 +152,9 @@ open class TerrarumIngame(batch: SpriteBatch) : IngameInstance(batch) {
init {
particlesContainer.overwritingPolicy = {
it.dispose()
}
}
@@ -1300,10 +1303,6 @@ open class TerrarumIngame(batch: SpriteBatch) : IngameInstance(batch) {
IngameRenderer.resize(App.scr.width, App.scr.height)
val drawWidth = Toolkit.drawWidth
if (gameInitialised) {
//LightmapRenderer.fireRecalculateEvent()
}
if (gameFullyLoaded) {
// resize UIs