Fixing memory leak when switching scenes

This commit is contained in:
David Négrier 2021-04-28 10:06:40 +02:00
parent 3b5f105daf
commit 189dba2e21

View File

@ -55,6 +55,9 @@ export class Game extends Phaser.Game {
// The final event before the step repeats. Your last chance to do anything to the canvas before it all starts again.
eventEmitter.emit(Events.POST_RENDER, renderer, time, delta);
} else {
// @ts-ignore
this.scene.isProcessing = false;
}
}