Handle onWillFire if it fails, so it loads dom renderer

This commit is contained in:
Simon Lamon
2022-10-09 15:01:15 +00:00
parent 627410a537
commit 1c345bef48
2 changed files with 4 additions and 4 deletions
@@ -103,9 +103,6 @@ export class WebglRenderer extends Disposable implements IRenderer {
throw new Error('WebGL2 not supported ' + this._gl);
}
// TODO: Remove me.
throw new Error('WebGL2 not supported ' + this._gl);
this.register(addDisposableDomListener(this._canvas, 'webglcontextlost', (e) => {
console.log('webglcontextlost event received');
// Prevent the default behavior in order to enable WebGL context restoration.