diff --git a/src/ol/webgl/map.js b/src/ol/webgl/map.js index 065cc02fdb..f113e4eed1 100644 --- a/src/ol/webgl/map.js +++ b/src/ol/webgl/map.js @@ -24,12 +24,6 @@ goog.require('ol.webgl.shader.Fragment'); goog.require('ol.webgl.shader.Vertex'); -/** - * @define {boolean} Enable WebGL debugging. - */ -ol.DEBUG_WEBGL = false; - - /** * @constructor @@ -155,10 +149,6 @@ ol.webgl.Map = function(target, opt_values) { }); goog.asserts.assert(!goog.isNull(this.gl_)); - if (ol.DEBUG_WEBGL) { - this.gl_ = WebGLDebugUtils.makeDebugContext(this.gl_); - } - goog.events.listen(this.canvas_, ol.webgl.WebGLContextEventType.LOST, this.handleWebGLContextLost, false, this); goog.events.listen(this.canvas_, ol.webgl.WebGLContextEventType.RESTORED,