Firefox, Nvidia and WebGL issue

I’m having issues with Firefox and WebGL. I’m not sure if it’s the same issue as OpenGL (and OpenCL) not working anymore after Ugrading to Nvidia 470.42.01. However, maybe it is related.

If I visit I get the message:

Hmm. While your browser seems to support WebGL, it is disabled or unavailable. If possible, please ensure that you are running the latest drivers for your video card.

Failed to create WebGL context: WebGL creation failed: 
* WebglAllowWindowsNativeGl:false restricts context creation on this system. ()

And, if I visit, I get the error:
Error: Failed to initialize WebGL

Running Firefox 90.0.1 (64-bit).

My graphics card:

$ inxi -G
  Device-1: NVIDIA TU104BM [GeForce RTX 2080 SUPER Mobile 
  / Max-Q] 
  driver: nvidia v: 470.57.02 
  Device-2: Chicony Chicony USB2.0 Camera type: USB 
  driver: uvcvideo 
  Display: x11 server: X.Org 1.20.11 driver: 
  loaded: nvidia resolution: 2560x1440~60Hz 
  renderer: NVIDIA GeForce RTX 2080 Super/PCIe/SSE2 
  v: 4.6.0 NVIDIA 470.57.02 

If I open about:config and set webgl.force-enabled to true, WebGL works again. However, I never had to force enable WebGL earlier.

Firefox decides to enable/disable features if you let the hardware acceleration automatic in the settings, I think. Untick the “recommended performance settings” box and tick the “use hardware acceleration if possible” box should be enough in case it was a Firefox auto blocklist thing.


Thanks, @omano. That seemed to work. So, either that, or setting webgl.force-enabled to true in about:config seems to solve this.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.