Skip to content

Commit d3beb04

Browse files
committed
Added parent to game objects that called CanvasPool.create2D
1 parent e7f286b commit d3beb04

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/gameobjects/rendertexture/RenderTexture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ var RenderTexture = new Class({
124124
this.clear = RenderTextureCanvas.clear;
125125
this.draw = RenderTextureCanvas.draw;
126126
this.drawFrame = RenderTextureCanvas.drawFrame;
127-
this.canvas = CanvasPool.create2D(null, width, height);
127+
this.canvas = CanvasPool.create2D(this, width, height);
128128
this.context = this.canvas.getContext('2d');
129129
}
130130

src/gameobjects/tilesprite/TileSprite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ var TileSprite = new Class({
165165
* @type {HTMLCanvasElement}
166166
* @since 3.0.0
167167
*/
168-
this.canvasBuffer = CanvasPool.create2D(null, this.potWidth, this.potHeight);
168+
this.canvasBuffer = CanvasPool.create2D(this, this.potWidth, this.potHeight);
169169

170170
/**
171171
* [description]

0 commit comments

Comments
 (0)