From 6f919032a43655157a4a804e226aa2578d11f6ab Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Wed, 21 Feb 2018 14:25:59 +0100 Subject: [PATCH] Use exported function from ol/webgl --- src/ol/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/index.js b/src/ol/index.js index eaa5c3d3b8..f2e44acc19 100644 --- a/src/ol/index.js +++ b/src/ol/index.js @@ -2,7 +2,7 @@ * @module ol */ -import webgl from './webgl.js'; +import {getContext} from './webgl.js'; /** @@ -45,7 +45,7 @@ if ('WebGLRenderingContext' in window) { try { const canvas = /** @type {HTMLCanvasElement} */ (document.createElement('CANVAS')); - const gl = webgl.getContext(canvas, {failIfMajorPerformanceCaveat: true}); + const gl = getContext(canvas, {failIfMajorPerformanceCaveat: true}); if (gl) { HAS_WEBGL = true; WEBGL_MAX_TEXTURE_SIZE = /** @type {number} */