gpujs / gpu.js

GPU Accelerated JavaScript
https://gpu.rocks
MIT License
15.04k stars 646 forks source link

WebGL kernel feature checks may throw an error #778

Open jbghoul opened 1 year ago

jbghoul commented 1 year ago

A GIF or MEME to give some spice of the internet

What is wrong?

WebGL kernel feature checks may throw an error

Where does it happen?

In WebGLKernel.setupFeatureChecks when trying to check if WebGL 1 kernel is supported

How do we replicate the issue?

prerequisite:

In Chrome you can directly test this case in console:

image

How important is this (1-5)?

2

Expected behavior (i.e. solution)

WebGLKernel.setupFeatureChecks should return without throwing exception.

testCanvas.getContext('experimental-webgl') should not be called on OffscreenCanvas

Other Comments