Skip to content

Commit e635696

Browse files
committed
Merge pull request phaserjs#1671 from pnstickne/wip-1666
Tilemap rendering sets initial state better
2 parents c38632a + dcc83ec commit e635696

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/tilemap/TilemapLayer.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,6 +1027,8 @@ Phaser.TilemapLayer.prototype.render = function () {
10271027
return;
10281028
}
10291029

1030+
this.context.save();
1031+
10301032
if (this.dirty || this.layer.dirty)
10311033
{
10321034
this.layer.dirty = false;
@@ -1094,6 +1096,8 @@ Phaser.TilemapLayer.prototype.render = function () {
10941096

10951097
this.dirty = false;
10961098

1099+
this.context.restore();
1100+
10971101
return true;
10981102

10991103
};

0 commit comments

Comments
 (0)