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