mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
Fix for tile sprite
This commit is contained in:
parent
d6fb8d7760
commit
b6ed58b93f
1 changed files with 1 additions and 3 deletions
|
@ -86,8 +86,6 @@ var TileSprite = new Class({
|
|||
return;
|
||||
}
|
||||
|
||||
this.canvasBuffer.width = this.canvasBuffer.width;
|
||||
|
||||
this.canvasBufferCtx.drawImage(
|
||||
this.frame.source.image,
|
||||
this.frame.cutX, this.frame.cutY,
|
||||
|
@ -98,7 +96,7 @@ var TileSprite = new Class({
|
|||
|
||||
if (this.renderer)
|
||||
{
|
||||
this.renderer.uploadCanvasToGPU(this.canvasBuffer, this.tileTexture, true);
|
||||
this.renderer.uploadCanvasToGPU(this.canvasBuffer, this.tileTexture, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue