110
60
I'd like to be able to use WebGL-based sites like Shadertoy, WebGL Earth, etc, but those sites tell me that WebGL is disabled in my browser. How can I enable it?
110
60
I'd like to be able to use WebGL-based sites like Shadertoy, WebGL Earth, etc, but those sites tell me that WebGL is disabled in my browser. How can I enable it?
192
I've made this answer a community wiki post, so please update it if you notice any out-of-date or missing information.
Check caniuse.com/webgl to see whether your browser supports WebGL.
If your browser supports WebGL, follow these instructions to enable it:
First, enable hardware acceleration:
chrome://settings
Then enable WebGL:
chrome://flags
In newer versions, this option of Disable WebGL will not be available, you will instead have to search for WebGL 2.0 (or some different version) that looks like this:
Here you will have to change Default
to Enabled
in the drop down.
Then inspect the status of WebGL:
chrome://gpu
If the status is not "Hardware accelerated", then the Problems Detected list (below the the Graphics Feature Status list) may explain why hardware acceleration is unavailable.
If your graphics card/drivers are blacklisted, you can override the blacklist. Warning: this is not recommended! (see blacklists note below). To override the blacklist:
chrome://flags
For more information, see: Chrome Help: WebGL and 3D graphics.
First, enable WebGL:
about:config
webgl.disabled
false
(any changes take effect immediately without relaunching Firefox)Then inspect the status of WebGL:
about:support
If your graphics card/drivers are blacklisted, you can override the blacklist. Warning: this is not recommended! (see blacklists note below). To override the blacklist:
about:config
webgl.force-enabled
true
(Like Chrome, Firefox has a Use hardware acceleration when available checkbox, in Preferences > Advanced > General > Browsing. However, unlike Chrome, Firefox does not require this checkbox to be checked for WebGL to work.)
If your graphics drivers are too old to support WebGL, you may be able to upgrade them.
More information is available here:
Certain graphics cards and drivers are blacklisted by some browsers, because they are known to contain serious bugs or cause crashes. In very severe cases, these can even cause the entire computer to freeze! For example, this issue causes certain Mac computers to freeze and require restarting.
Many browsers have an option to override the blacklist (ie: attempt to use the blacklisted features, despite the risks). This is not recommended! You should only override the blacklist if you understand and accept the risks.
More information is available here:
1
Very useful for Chrome - except that it might be best to clarify the Disable WebGL option - which is not obvious in Chrome.
The Disable WebGL option has to have been disabled (urgh - double negative), i.e. the link below must say 'Enable' - meaning that disabling webGL is off... May save someone a few minutes.
Best wishes Andy
4
For Firefox, on Ubuntu, I also had to reset
– ThomasG77 – 2016-04-12T22:18:17.657gfx.crash-guard.status.glcontext
(See from https://sourceforge.net/p/x3dom/mailman/message/34731616/). I prefer to post as a comment before any edit to this community answer.Well I have the most up-to-date version of Chrome (Version 57.0.2987.133 (64-bit)). But at the chrome://flags I changed "WebGL 2.0...Allow web applications to access WebGL 2.0" to enabled, there was one for "WebGL Draft Extensions" I left that alone. Yet still in chrome://gpu both versions are still unavailable, You mention video drivers, how would I know if mine supports it or not? I have an Intel NUC DCCP847DYE – Edward – 2017-04-10T22:51:54.630
Just tried going to http://www.webglearth.com/ on kubuntu 16.04. It worked fine without any changes in Firefox 54 and Vivaldi 1.10. ... Things do continue to get better.
– Joe – 2017-07-11T06:05:58.803Strange, in Firefox 56 (currently a nightly version) WebGL doesn't work even though it's all showing up OK as above. Hm. – mlissner – 2017-07-26T15:39:15.867
Seem that the
– not2qubit – 2017-11-05T02:00:52.777webgl.*
Firefox options are very poorly documented. What do they all mean? Here are some additional options to look at.Amazing answer! Almost like a wiki page – asgs – 2018-01-07T16:52:52.050
This needs updating - the main problem is that Chrome, Firefox, etc have Google's broken ANGLE hack enabled (this disables OpenGL even when OGL is enabled, and tries to replace it with crappy D3D commands. That doesn't work). Don't touch webgl - it's on by default - just disable ANGLE – Adam – 2018-03-04T14:09:28.087
NB: I can't provide a correct answer myself, because someone locked the post, so we're blocked from adding answers. Shrug. – Adam – 2018-03-04T14:10:25.697
i just signed up in this community to upvote your answer , thank you ! – a_m_dev – 2018-09-08T08:22:58.283
I'm on Ubuntu 18.04 with an Nvidia card and the latest drivers, it gives me "WebGL creation failed: * tryNativeGL * Exhausted GL driver options" whenever my HTC Vive is plugged in, but works fine when it's unplugged. – Aaron Franke – 2019-09-19T04:02:31.840