mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
RenderTexture.draw
would fail to draw the frame in Canvas mode
This commit is contained in:
parent
7e55d5adac
commit
56e1e04da3
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ var RenderTextureCanvas = {
|
|||
|
||||
this.context.globalAlpha = this.globalAlpha;
|
||||
this.context.setTransform(matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5]);
|
||||
this.context.drawImage(source, cd.sx, cd.sy, cd.sWidth, cd.sHeight, x, y, cd.dWidth, cd.dHeight);
|
||||
this.context.drawImage(source, cd.x, cd.y, cd.width, cd.height, x, y, cd.width, cd.height);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue