improve index
This commit is contained in:
parent
f1622d49f4
commit
ea4210526d
5 changed files with 15 additions and 10 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue