No empty blocks
This commit is contained in:
@@ -133,7 +133,9 @@ ol.has.WEBGL;
|
||||
(gl.getParameter(gl.MAX_TEXTURE_SIZE));
|
||||
extensions = gl.getSupportedExtensions();
|
||||
}
|
||||
} catch (e) {}
|
||||
} catch (e) {
|
||||
// pass
|
||||
}
|
||||
}
|
||||
ol.has.WEBGL = hasWebGL;
|
||||
ol.WEBGL_EXTENSIONS = extensions;
|
||||
|
||||
@@ -272,5 +272,6 @@ ol.pointer.PointerEvent.HAS_BUTTONS = false;
|
||||
var ev = new MouseEvent('click', {buttons: 1});
|
||||
ol.pointer.PointerEvent.HAS_BUTTONS = ev.buttons === 1;
|
||||
} catch (e) {
|
||||
// pass
|
||||
}
|
||||
})();
|
||||
|
||||
@@ -38,6 +38,7 @@ ol.webgl.getContext = function(canvas, opt_attributes) {
|
||||
return /** @type {!WebGLRenderingContext} */ (context);
|
||||
}
|
||||
} catch (e) {
|
||||
// pass
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user