Skip to content

Commit

Permalink
Fix headless renderer compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminDRichards committed Feb 9, 2024
1 parent 9ab8297 commit 5ac59c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/textures/TextureManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5ac59c1

Please sign in to comment.