mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
Fix unmatched context.save() & context.restore() calls
This commit is contained in:
parent
74a8ba0080
commit
e41dba7f0c
1 changed files with 2 additions and 2 deletions
|
@ -997,8 +997,6 @@ Phaser.TilemapLayer.prototype.render = function () {
|
|||
return;
|
||||
}
|
||||
|
||||
this.context.save();
|
||||
|
||||
if (this.dirty || this.layer.dirty)
|
||||
{
|
||||
this.layer.dirty = false;
|
||||
|
@ -1024,6 +1022,8 @@ Phaser.TilemapLayer.prototype.render = function () {
|
|||
return;
|
||||
}
|
||||
|
||||
this.context.save();
|
||||
|
||||
mc.scrollX = scrollX;
|
||||
mc.scrollY = scrollY;
|
||||
|
||||
|
|
Loading…
Reference in a new issue