This commit is contained in:
Andras Schmelczer 2026-05-09 09:26:40 +01:00
parent 701c17a703
commit f114ada255
44 changed files with 5264 additions and 1674 deletions

View file

@ -292,8 +292,7 @@ export async function checkWebGL(): Promise<Record<string, unknown>> {
await page.setContent('<canvas id="c" width="1" height="1"></canvas>');
const info = await page.evaluate(() => {
const canvas = document.getElementById('c') as HTMLCanvasElement;
const gl =
canvas.getContext('webgl2') || canvas.getContext('webgl') || canvas.getContext('experimental-webgl');
const gl = canvas.getContext('webgl2');
if (!gl) return { webgl: false, error: 'No WebGL context available' };
const g = gl as WebGLRenderingContext;
const debugExt = g.getExtension('WEBGL_debug_renderer_info');