switch to webgl2
This commit is contained in:
parent
fec20645ce
commit
b19aba1b08
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue