From b19aba1b08c751f9c74d03bf3df71691a7c05d87 Mon Sep 17 00:00:00 2001 From: gbrochar Date: Tue, 24 Nov 2020 14:08:53 +0100 Subject: [PATCH] switch to webgl2 --- 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 479361c..ca52312 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('webgl'); + const gl = canvas.getContext('webgl2'); if (gl == null) { canvas.parentNode.removeChild(canvas);