improve index

This commit is contained in:
41666 2023-10-01 13:20:05 -04:00
parent f1622d49f4
commit ea4210526d
5 changed files with 15 additions and 10 deletions

View file

@ -18,7 +18,7 @@ export class App {
this.canvas = document.querySelector("canvas");
this.canvas.width = window.innerWidth;
this.canvas.height = window.innerHeight;
this.gl = this.canvas.getContext("webgl");
this.gl = this.canvas.getContext("webgl2");
if (this.gl === null) {
document.querySelector(