(WebGL) How to Enable Native OpenGL in your Browser (Windows)
By default, both Firefox and Chrome use the ANGLE layer to render WebGL draw calls under Windows. ANGLE is an implementation of the OpenGL ES 2.0 specification that is hardware-accelerated via Direct3D 9.
If, for some reasons (for some Shadertoy demos for example), you want to use real OpenGL draw calls, you can enable native OpenGL in Firefox and Chrome.
In Firefox, just set the webgl.prefer-native-gl variable to true in the about:config page:
The nice thing with Firefox, is that the new setting is immediately operational.
In Chrome, you have to add the following command line parameter: –use-gl=desktop. Just edit the Chrome shortcut and change the Target value:
Unlike Firefox, you need to close all Chrome instances to enjoy the new setting.
Now how to check that ANGLE is disabled? Just use this WebGL Browser Report app. Jump at the end of the page in the Miscellaneous section and you should find the ANGLE status:
Another way to check the native OpenGL support is the max texture size (or max viewport size). With recent desktop OpenGL implementations, the max texture size is 16k or 16384 pixels. If you see something like 8192, ANGLE is likely enabled because 8192 pixels is the max size of a texture with Direct3D 9.
[ Subscribe to Geeks3D latest news by email ]