Skip to content

Commit f410dc3

Browse files
committed
The Headless renderer was broken due to an invalid access during TextureSource.init.
1 parent bdf9f5c commit f410dc3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ TODO
2929
* The Plugin File type in the Loader didn't create itself correctly as it was missing an argument.
3030
* WebAudioSoundManager.unlock will now check if `document.body` is available before setting the listeners on it. Fixes old versions of Firefox, apparently. #3649 (thanks @squilibob)
3131
* Utils.Array.BringToTop failed to move the penultimate item in an array due to an index error. Fix #3658 (thanks @agar3s)
32+
* The Headless renderer was broken due to an invalid access during TextureSource.init.
3233

3334
### Examples, Documentation and TypeScript
3435

src/textures/TextureSource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ var TextureSource = new Class({
152152
*/
153153
init: function (game)
154154
{
155-
if (this.renderer.gl)
155+
if (this.renderer && this.renderer.gl)
156156
{
157157
if (this.isCanvas)
158158
{

0 commit comments

Comments
 (0)