phaserjs / phaser

Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
https://phaser.io
MIT License
37.16k stars 7.1k forks source link

WebGLRenderer: this.init.setupExtensions is undefined #6905

Closed RedRoosterMobile closed 2 months ago

RedRoosterMobile commented 2 months ago

Version

Description

In WebGLRenderer:

// Restore GL extensions.
this.init.setupExtensions();

When executed results in: this.init.setupExtensions is not a function. (In 'this.init.setupExtensions()', 'this.init.setupExtensions' is undefined)

Example Test Code

Additional Information

photonstorm commented 2 months ago

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.