revert to webgl1 to have more safari compatibility

This commit is contained in:
gbrochar 2020-11-24 14:10:16 +01:00
parent b19aba1b08
commit f85681a44e
1 changed files with 1 additions and 1 deletions

View File

@ -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);