Fix unmatched context.save() & context.restore() calls

This commit is contained in:
Imanol Fernandez 2015-07-24 17:36:56 +02:00
parent 74a8ba0080
commit e41dba7f0c

View file

@ -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;