revert to webgl1 to have more safari compatibility
This commit is contained in:
parent
b19aba1b08
commit
f85681a44e
|
@ -17,7 +17,7 @@ main();
|
||||||
*/
|
*/
|
||||||
async function main() {
|
async function main() {
|
||||||
const canvas: any = document.querySelector('#glCanvas')!;
|
const canvas: any = document.querySelector('#glCanvas')!;
|
||||||
const gl = canvas.getContext('webgl2');
|
const gl = canvas.getContext('webgl');
|
||||||
|
|
||||||
if (gl == null) {
|
if (gl == null) {
|
||||||
canvas.parentNode.removeChild(canvas);
|
canvas.parentNode.removeChild(canvas);
|
||||||
|
|
Loading…
Reference in New Issue