SpineCanvasPlugin.shutdown would try to dispose of the sceneRenderer, but the property isn't set for Canvas.

This commit is contained in:
Richard Davey 2019-09-04 14:25:56 +01:00
parent fc5630cb72
commit d0c40b647f
2 changed files with 8 additions and 1 deletions

View file

@ -6,6 +6,10 @@
* `GameConfig.antialiasGL` is a new boolean that allows you to set the `antialias` property of the WebGL context during creation, without impacting any subsequent textures or the canvas CSS.
### Bug Fixes
* `SpineCanvasPlugin.shutdown` would try to dispose of the `sceneRenderer`, but the property isn't set for Canvas.
## Version 3.19.0 - Naofumi - 8th August 2019
### Tween Updates

View file

@ -1086,7 +1086,10 @@ var SpinePlugin = new Class({
eventEmitter.off('shutdown', this.shutdown, this);
this.sceneRenderer.dispose();
if (this.sceneRenderer)
{
this.sceneRenderer.dispose();
}
},
/**