mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 14:38:30 +00:00
Merge branch 'master' of https://github.com/photonstorm/phaser
This commit is contained in:
commit
0aba433379
3 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue