Преглед на файлове

[phaser] Closes #2390, reset static gameWebGLRenderer to remounts in React/Vue work.

Mario Zechner преди 1 година
родител
ревизия
8d4ed3056a
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      spine-ts/spine-phaser/src/SpinePlugin.ts

+ 1 - 0
spine-ts/spine-phaser/src/SpinePlugin.ts

@@ -193,6 +193,7 @@ export class SpinePlugin extends Phaser.Plugins.ScenePlugin {
 	gameDestroy () {
 		this.pluginManager.removeGameObject((window as any).SPINE_GAME_OBJECT_TYPE ? (window as any).SPINE_GAME_OBJECT_TYPE : SPINE_GAME_OBJECT_TYPE, true, true);
 		if (this.webGLRenderer) this.webGLRenderer.dispose();
+		SpinePlugin.gameWebGLRenderer = null;
 	}
 
 	/** Returns the TextureAtlas instance for the given key */