Skip to content

Commit b6ed58b

Browse files
committed
Fix for tile sprite
1 parent d6fb8d7 commit b6ed58b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

v3/src/gameobjects/tilesprite/TileSprite.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ var TileSprite = new Class({
8686
return;
8787
}
8888

89-
this.canvasBuffer.width = this.canvasBuffer.width;
90-
9189
this.canvasBufferCtx.drawImage(
9290
this.frame.source.image,
9391
this.frame.cutX, this.frame.cutY,
@@ -98,7 +96,7 @@ var TileSprite = new Class({
9896

9997
if (this.renderer)
10098
{
101-
this.renderer.uploadCanvasToGPU(this.canvasBuffer, this.tileTexture, true);
99+
this.renderer.uploadCanvasToGPU(this.canvasBuffer, this.tileTexture, false);
102100
}
103101
else
104102
{

0 commit comments

Comments
 (0)