switch to webgl2

This commit is contained in:
gbrochar 2020-11-24 14:08:53 +01:00
parent fec20645ce
commit b19aba1b08
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('webgl');
const gl = canvas.getContext('webgl2');
if (gl == null) {
canvas.parentNode.removeChild(canvas);