This commit is contained in:
Richard Davey 2018-04-13 17:20:51 +01:00
commit 0aba433379
3 changed files with 3 additions and 3 deletions

View file

@ -134,7 +134,7 @@ function init ()
OS.cordova = true;
}
if ((typeof process !== 'undefined') && (typeof process.versions.node !== 'undefined'))
if (process && process.versions && process.versions.node)
{
OS.node = true;
}

View file

@ -124,7 +124,7 @@ var RenderTexture = new Class({
this.clear = RenderTextureCanvas.clear;
this.draw = RenderTextureCanvas.draw;
this.drawFrame = RenderTextureCanvas.drawFrame;
this.canvas = CanvasPool.create2D(null, width, height);
this.canvas = CanvasPool.create2D(this, width, height);
this.context = this.canvas.getContext('2d');
}

View file

@ -165,7 +165,7 @@ var TileSprite = new Class({
* @type {HTMLCanvasElement}
* @since 3.0.0
*/
this.canvasBuffer = CanvasPool.create2D(null, this.potWidth, this.potHeight);
this.canvasBuffer = CanvasPool.create2D(this, this.potWidth, this.potHeight);
/**
* [description]