Open jbghoul opened 1 year ago
WebGL kernel feature checks may throw an error
In WebGLKernel.setupFeatureChecks when trying to check if WebGL 1 kernel is supported
prerequisite:
global variable document must be undefined
OffscreenCanvas class should be define
offsetCanvas.getContext('webgl') should not be truthly
compute GPU.isWebGLSupported
then, offsetCanvas.getContext('experimental-webgl') will throw an error
In Chrome you can directly test this case in console:
2
WebGLKernel.setupFeatureChecks should return without throwing exception.
testCanvas.getContext('experimental-webgl') should not be called on OffscreenCanvas
testCanvas.getContext('experimental-webgl')
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:
global variable document must be undefined
OffscreenCanvas class should be define
offsetCanvas.getContext('webgl') should not be truthly
compute GPU.isWebGLSupported
then, offsetCanvas.getContext('experimental-webgl') will throw an error
In Chrome you can directly test this case in console:
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 OffscreenCanvasOther Comments