We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1507dcf commit 5cc2ebdCopy full SHA for 5cc2ebd
1 file changed
src/renderer/webgl/WebGLRenderer.js
@@ -400,7 +400,7 @@ var WebGLRenderer = new Class({
400
var clearColor = config.backgroundColor;
401
var gl = canvas.getContext('webgl', config.contextCreation) || canvas.getContext('experimental-webgl', config.contextCreation);
402
403
- if (!gl)
+ if (!gl || gl.isContextLost())
404
{
405
this.contextLost = true;
406
throw new Error('This browser does not support WebGL. Try using the Canvas pipeline.');
@@ -1890,11 +1890,6 @@ var WebGLRenderer = new Class({
1890
delete this.nativeTextures[index];
1891
}
1892
1893
- if (this.hasExtension('WEBGL_lose_context'))
1894
- {
1895
- this.getExtension('WEBGL_lose_context').loseContext();
1896
- }
1897
-
1898
delete this.gl;
1899
delete this.game;
1900
0 commit comments