mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +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 ()
|
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.clearRect(0, 0, this.canvas.width, this.canvas.height);
|
||||||
|
this.context.restore();
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue