Use ol.BrowserFeature.HAS_WEBGL in layer-clipping-webgl example
This commit is contained in:
1 parent
7cadb6824e
commit
009f9328a8
1 file changed
+2
-1
@@ -1,10 +1,11 @@
|
||||
goog.require('ol.BrowserFeature');
|
||||
goog.require('ol.Map');
|
||||
goog.require('ol.RendererHint');
|
||||
goog.require('ol.View2D');
|
||||
goog.require('ol.layer.Tile');
|
||||
goog.require('ol.source.OSM');
|
||||
|
||||
if (!ol.webgl.SUPPORTED) {
|
||||
if (!ol.BrowserFeature.HAS_WEBGL) {
|
||||
var info = document.getElementById('no-webgl');
|
||||
/**
|
||||
* display error message
|
||||
|
||||
Reference in new issue
Block a user