HAS_WEBGL is false if ENABLE_WEBGL is false

This commit is contained in:
Éric Lemoine committed 2013-12-18 11:20:14 +01:00
1 parent 3df49423ad
commit 7fe684a6d4
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -109,7 +109,7 @@ ol.BrowserFeature.HAS_TOUCH = ol.ASSUME_TOUCH ||
* @type {boolean}
* @todo stability experimental
*/
ol.BrowserFeature.HAS_WEBGL = (
ol.BrowserFeature.HAS_WEBGL = ol.ENABLE_WEBGL && (
/**
* @return {boolean} WebGL supported.
*/
+1 -1
View File
@@ -1299,7 +1299,7 @@ ol.Map.createOptionsInternal = function(options) {
break;
}
} else if (rendererHint == ol.RendererHint.WEBGL) {
if (ol.ENABLE_WEBGL && ol.BrowserFeature.HAS_WEBGL) {
if (ol.BrowserFeature.HAS_WEBGL) {
rendererConstructor = ol.renderer.webgl.Map;
break;
}