mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 13:55:04 +02:00
Update to angular 18
This commit is contained in:
@@ -25,14 +25,14 @@ export function getWebGLContext(canvas: HTMLCanvasElement): WebGLRenderingContex
|
||||
const useDebugContext = false;
|
||||
|
||||
if (useDebugContext) {
|
||||
gl = makeDebugContext(gl);
|
||||
gl = makeDebugContext(gl as WebGLRenderingContext);
|
||||
|
||||
if (!gl) {
|
||||
throw new Error(WEBGL_CREATION_ERROR);
|
||||
}
|
||||
}
|
||||
|
||||
return gl;
|
||||
return gl as WebGLRenderingContext;
|
||||
}
|
||||
|
||||
export function isWebGL2(gl: WebGLRenderingContext | undefined) {
|
||||
|
||||
Reference in New Issue
Block a user