diff --git a/src/core/utils/index.js b/src/core/utils/index.js index 2fd81ef..1532487 100644 --- a/src/core/utils/index.js +++ b/src/core/utils/index.js @@ -146,7 +146,12 @@ var success = !!(gl && gl.getContextAttributes().stencil); if (gl) { - gl.getExtension('WEBGL_lose_context').loseContext(); + var loseContext = gl.getExtension('WEBGL_lose_context'); + + if(loseContext) + { + loseContext.loseContext(); + } } gl = null;