Improve type checking in WebGL support test
This commit is contained in:
@@ -52,7 +52,11 @@ ol.webgl.getContext = function(canvas, opt_attributes) {
|
|||||||
* @const
|
* @const
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
*/
|
*/
|
||||||
ol.webgl.SUPPORTED = (function() {
|
ol.webgl.SUPPORTED = (
|
||||||
|
/**
|
||||||
|
* @return {boolean} WebGL supported.
|
||||||
|
*/
|
||||||
|
function() {
|
||||||
if (!('WebGLRenderingContext' in goog.global)) {
|
if (!('WebGLRenderingContext' in goog.global)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user