Merge remote-tracking branch 'openlayers/master' into vector-api
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
@exportSymbol ol.Object
|
||||
@exportProperty ol.Object.prototype.bindTo
|
||||
@exportProperty ol.Object.prototype.get
|
||||
@exportProperty ol.Object.prototype.getProperties
|
||||
@exportProperty ol.Object.prototype.notify
|
||||
@exportProperty ol.Object.prototype.on
|
||||
@exportProperty ol.Object.prototype.once
|
||||
|
||||
@@ -79,6 +79,7 @@ ol.renderer.webgl.Map = function(container, map) {
|
||||
this.gl_ = ol.webgl.getContext(this.canvas_, {
|
||||
antialias: true,
|
||||
depth: false,
|
||||
failIfMajorPerformanceCaveat: true,
|
||||
preserveDrawingBuffer: false,
|
||||
stencil: true
|
||||
});
|
||||
|
||||
@@ -52,15 +52,21 @@ ol.webgl.getContext = function(canvas, opt_attributes) {
|
||||
* @const
|
||||
* @type {boolean}
|
||||
*/
|
||||
ol.webgl.SUPPORTED = (function() {
|
||||
if (!('WebGLRenderingContext' in goog.global)) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
var canvas = /** @type {HTMLCanvasElement} */
|
||||
(goog.dom.createElement(goog.dom.TagName.CANVAS));
|
||||
return !goog.isNull(ol.webgl.getContext(canvas));
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
})();
|
||||
ol.webgl.SUPPORTED = (
|
||||
/**
|
||||
* @return {boolean} WebGL supported.
|
||||
*/
|
||||
function() {
|
||||
if (!('WebGLRenderingContext' in goog.global)) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
var canvas = /** @type {HTMLCanvasElement} */
|
||||
(goog.dom.createElement(goog.dom.TagName.CANVAS));
|
||||
return !goog.isNull(ol.webgl.getContext(canvas, {
|
||||
failIfMajorPerformanceCaveat: true
|
||||
}));
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user