mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
Fixed issue on RenderTexture canvas clear. The clearRect was affected by previous transformations
This commit is contained in:
parent
9585a1c78b
commit
be81ddfd51
1 changed files with 3 additions and 0 deletions
|
@ -13,7 +13,10 @@ var RenderTextureCanvas = {
|
|||
|
||||
clear: function ()
|
||||
{
|
||||
this.context.save();
|
||||
this.context.setTransform(1, 0, 0, 1, 0, 0);
|
||||
this.context.clearRect(0, 0, this.canvas.width, this.canvas.height);
|
||||
this.context.restore();
|
||||
return this;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue