diff --git a/src/pixi/extras/TilingSprite.js b/src/pixi/extras/TilingSprite.js index 0776f77..4387771 100644 --- a/src/pixi/extras/TilingSprite.js +++ b/src/pixi/extras/TilingSprite.js @@ -381,7 +381,7 @@ { if (!this.texture.baseTexture.hasLoaded) return; - var texture = this.texture; + var texture = this.originalTexture || this.texture; var frame = texture.frame; var targetWidth, targetHeight; @@ -458,5 +458,9 @@ } this.refreshTexture = false; + + this.originalTexture = this.texture; + this.texture = this.tilingTexture; + this.tilingTexture.baseTexture._powerOf2 = true; };