LGTM
This commit is contained in:
parent
701c17a703
commit
f114ada255
44 changed files with 5264 additions and 1674 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue