From f85681a44e3c9bf7fcdd344208f5b4b1adf06fb4 Mon Sep 17 00:00:00 2001 From: gbrochar Date: Tue, 24 Nov 2020 14:10:16 +0100 Subject: [PATCH] revert to webgl1 to have more safari compatibility --- src/client/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/main.ts b/src/client/main.ts index ca52312..479361c 100644 --- a/src/client/main.ts +++ b/src/client/main.ts @@ -17,7 +17,7 @@ main(); */ async function main() { const canvas: any = document.querySelector('#glCanvas')!; - const gl = canvas.getContext('webgl2'); + const gl = canvas.getContext('webgl'); if (gl == null) { canvas.parentNode.removeChild(canvas);