Fixed issue on RenderTexture canvas clear. The clearRect was affected by previous transformations

This commit is contained in:
Felipe Alfonso 2018-03-12 13:30:05 -03:00
parent 9585a1c78b
commit be81ddfd51

View file

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