Skip to content

Commit 56e1e04

Browse files
committed
RenderTexture.draw would fail to draw the frame in Canvas mode
1 parent 7e55d5a commit 56e1e04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gameobjects/rendertexture/RenderTextureCanvas.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var RenderTextureCanvas = {
3131

3232
this.context.globalAlpha = this.globalAlpha;
3333
this.context.setTransform(matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5]);
34-
this.context.drawImage(source, cd.sx, cd.sy, cd.sWidth, cd.sHeight, x, y, cd.dWidth, cd.dHeight);
34+
this.context.drawImage(source, cd.x, cd.y, cd.width, cd.height, x, y, cd.width, cd.height);
3535

3636
return this;
3737
}

0 commit comments

Comments
 (0)