mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-17 22:14:05 +09:00
particles must be disposed of before overwritten
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user