Enable OpenGL 2.0 and WebGL for Intel GMA3150 in Ubuntu

I wanted to use WebGL in my Acer Aspire One D255E netbook that uses an Intel GMA 3150 onboard graphics card, but it did not work in Chromium nor Firefox. WebGL requires OpenGL 2.0 support, but I found out I only had support for OpenGL 1.4:


But I found out it was possible to enable OpenGL 2.0 for GMA 3150 in Linux by installing and running driconf:


and clicking on “Enable limited ARB_fragment_shader support on 915/945.” and “Enable stub ARB_occlusion_query support on 915/945.” options. They are not enabled by default because they do cause problems.

After those two options were enabled, OpenGL 2.0 was enabled.


But I still could not use WebGL in either Chromium nor Firefox, so I decided to install the latest version of Mesa (7.11) with indirect rendering (software) enabled with libOSMesa:


Even with the latest Mesa library, I could not use WebGL applications, so I enabled software rendering in Firefox as follows:

  1. Type about:config in the address bar and webgl in the filter field.
  2. Set webgl.force_osmesa to true.
  3. Set webgl.osmesalib string to /usr/lib/libOSMesa.so

That’s it. You should now be able to use applications using WebGL. However, this will be very slow since it uses software rendering.

This was tested with Ubuntu 10.04 LTS.

Share this:
FacebookTwitterHacker NewsSlashdotRedditLinkedInPinterestFlipboardMeWeLineEmailShare

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK Pi 4C Plus

Leave a Reply

Your email address will not be published. Required fields are marked *

Khadas VIM4 SBC
Khadas VIM4 SBC