Skip to content

Commit

Permalink
Remove window.WebGLDebugUtils global
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed May 13, 2019
1 parent 1b6ae54 commit 34f6a91
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/viewer/scene/canvas/Canvas.js
Expand Up @@ -125,14 +125,6 @@ class Canvas extends Component {

// Get WebGL context

if (cfg.simulateWebGLContextLost) {
if (window.WebGLDebugUtils) {
this.canvas = WebGLDebugUtils.makeLostContextSimulatingCanvas(this.canvas);
} else {
this.error("To simulate context loss, please include WebGLDebugUtils");
}
}

this._initWebGL(cfg);

// Bind context loss and recovery handlers
Expand Down

0 comments on commit 34f6a91

Please sign in to comment.