Skip to content

Commit dd53ffa

Browse files
authored
Merge pull request phaserjs#4303 from clesquir/patch-1
Headless tilesprite crash fix
2 parents 901df29 + e40cb21 commit dd53ffa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gameobjects/tilesprite/TileSprite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ var TileSprite = new Class({
405405
*/
406406
updateTileTexture: function ()
407407
{
408-
if (!this.dirty)
408+
if (!this.dirty || !this.renderer)
409409
{
410410
return;
411411
}

0 commit comments

Comments
 (0)