mirror of
https://github.com/photonstorm/phaser
synced 2024-11-21 20:23:19 +00:00
Fix headless renderer compatibility.
This commit is contained in:
parent
9ab82970c7
commit
5ac59c1890
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ var TextureManager = new Class({
|
|||
this.addBase64('__DEFAULT', config.defaultImage);
|
||||
this.addBase64('__MISSING', config.missingImage);
|
||||
this.addBase64('__WHITE', config.whiteImage);
|
||||
if (this.game.renderer.gl)
|
||||
if (this.game.renderer && this.game.renderer.gl)
|
||||
{
|
||||
this.addUint8Array('__NORMAL', new Uint8Array([ 127, 127, 255, 255 ]), 1, 1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue