Skip to content

Commit 4e9291e

Browse files
committed
TileSprite.loadTexture crashed when textures were updated in WebGL (thanks @pandavigoureux29 phaserjs#1495)
1 parent 3e06282 commit 4e9291e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/pixi/extras/TilingSprite.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,8 @@ PIXI.TilingSprite.prototype._renderWebGL = function(renderSession)
167167

168168
if (this.tilingTexture && this.tilingTexture.needsUpdate)
169169
{
170-
//TODO - tweaking
171-
// PIXI.updateWebGLTexture(this.tilingTexture.baseTexture, renderSession.gl);
170+
renderSession.renderer.updateTexture(this.tilingTexture.baseTexture);
172171
this.tilingTexture.needsUpdate = false;
173-
// this.tilingTexture._uvs = null;
174172
}
175173
}
176174
else

0 commit comments

Comments
 (0)