mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
StateManager no longer saves and resets the context around a Canvas state render function.
This commit is contained in:
parent
e06b900a61
commit
9f07eb176b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue