mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.context.save();
|
|
||||||
|
|
||||||
if (this.dirty || this.layer.dirty)
|
if (this.dirty || this.layer.dirty)
|
||||||
{
|
{
|
||||||
this.layer.dirty = false;
|
this.layer.dirty = false;
|
||||||
|
@ -1024,6 +1022,8 @@ Phaser.TilemapLayer.prototype.render = function () {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.context.save();
|
||||||
|
|
||||||
mc.scrollX = scrollX;
|
mc.scrollX = scrollX;
|
||||||
mc.scrollY = scrollY;
|
mc.scrollY = scrollY;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue