Update npm dependencies

This commit is contained in:
Eliot Partridge
2019-08-30 10:30:13 -05:00
parent 7603879d35
commit ef316acfe4
9 changed files with 68 additions and 64 deletions
+2 -2
View File
@@ -18,9 +18,9 @@ export function getWebGLContext(canvas: HTMLCanvasElement): WebGLRenderingContex
antialias: false,
};
const gl = canvas.getContext('webgl2', options)
const gl = (canvas.getContext('webgl2', options)
|| canvas.getContext('webgl', options)
|| canvas.getContext('experimental-webgl', options);
|| canvas.getContext('experimental-webgl', options)) as WebGLRenderingContext;
if (!gl) {
throw new Error(WEBGL_CREATION_ERROR);