mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
Merge pull request #2097 from pnstickne/wip-2092
Fixes edge case when TilingSprite removed before render
This commit is contained in:
commit
11de8b1944
1 changed files with 6 additions and 2 deletions
|
@ -496,10 +496,14 @@ PIXI.TilingSprite.prototype.getBounds = function()
|
|||
|
||||
PIXI.TilingSprite.prototype.destroy = function () {
|
||||
|
||||
this.canvasBuffer.destroy();
|
||||
|
||||
PIXI.Sprite.prototype.destroy.call(this);
|
||||
|
||||
if (this.canvasBuffer)
|
||||
{
|
||||
this.canvasBuffer.destroy();
|
||||
this.canvasBuffer = null;
|
||||
}
|
||||
|
||||
this.tileScale = null;
|
||||
this.tileScaleOffset = null;
|
||||
this.tilePosition = null;
|
||||
|
|
Loading…
Reference in a new issue