mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 21:55:52 +02:00
Update npm dependencies
This commit is contained in:
@@ -18,9 +18,9 @@ export function getWebGLContext(canvas: HTMLCanvasElement): WebGLRenderingContex
|
||||
antialias: false,
|
||||
};
|
||||
|
||||
const gl = canvas.getContext('webgl2', options)
|
||||
const gl = (canvas.getContext('webgl2', options)
|
||||
|| canvas.getContext('webgl', options)
|
||||
|| canvas.getContext('experimental-webgl', options);
|
||||
|| canvas.getContext('experimental-webgl', options)) as WebGLRenderingContext;
|
||||
|
||||
if (!gl) {
|
||||
throw new Error(WEBGL_CREATION_ERROR);
|
||||
|
||||
Reference in New Issue
Block a user