Hacker News new | ask | show | jobs
by matheist 1380 days ago
The live demo doesn't work for me on Firefox on macOS (FF 105, macOS 12.4, M1) with a "WebGL is not available" error message.

Console error shows:

    WebGL warning: readPixels: Format and type RGBA_INTEGER/UNSIGNED_BYTE incompatible with this RGBA8UI attachment. This framebuffer requires either RGBA_INTEGER/UNSIGNED_INT or getParameter(IMPLEMENTATION_COLOR_READ_FORMAT/_TYPE) RGBA_INTEGER/UNSIGNED_INT.
2 comments

Thanks for the report! I've tried to tackle this issue multiple times now, but found that for some reason on MacOS M1, FireFox's WebGL implementation is severely broken on multiple features that the WebGL specification guarantees to be working. I can't test if this is just for the M1 or also other Mac devices, but Chrome definitely works!
I get "WebGL is not available" on an Intel Mac Pro, macOS 12.5.1, Firefox Developer 105.0b8. ("Intel Mac Pro" is redundant at the time of this writing, but hopefully not for long!)

On the same Mac, I get "Your browser is not supported" for Safari 15.6.1, and Safari Technology Preview R152 (Safari 16.0) with "WebGL 2.0" and "WebGL Draft Extensions" enabled under "Experimental Features."

Using Ungoogled Chromium 105.0.5195.102 (I refuse to use Chrome), the site actually seems to leave the GPU in a messed-up state, going on to cause severe rendering problems in other applications. I'm not sure if this is a Chromium bug or a macOS bug or both.

Just to add that I'm seeing the same error on Fedora 36 with FF 103.0.2 64-bit
Does Chrome work for you?
I am on Fedora 36 and it doesn't run in Firefox either, however it does run in Chrome.
Don't have it installed but if I can find time I'll give it a go
fwiw, it worked on Firefox for Windows.
I get same error on ff 105.0a1 (2022-08-01) (64-bit) running on Ubuntu 22.04 ... however I know WebGL runs fine on this setup

on same laptop using chrome Version 106.0.5249.21 (Official Build) dev (64-bit) get error

[.WebGL-0x1b80018ed800]GL ERROR :GL_INVALID_OPERATION : glDrawArrays: Source and destination textures of the draw are the same.

again this same chrome browser runs other WebGL just fine