StateManager no longer saves and resets the context around a Canvas state render function.

This commit is contained in:
photonstorm 2016-10-14 06:30:44 +01:00
parent e06b900a61
commit 9f07eb176b

View file

@ -714,10 +714,10 @@ Phaser.StateManager.prototype = {
{
if (this.game.renderType === Phaser.CANVAS)
{
this.game.context.save();
// this.game.context.save();
this.game.context.setTransform(1, 0, 0, 1, 0, 0);
this.onRenderCallback.call(this.callbackContext, this.game);
this.game.context.restore();
// this.game.context.restore();
}
else
{