Running opengl 3.0 without your computer supporting it

in linux •  6 months ago

Hi, how are you? how are you?

I come to share an interesting fact, such as running the opengl on the computer without it being supported.


If you want to know your opengl version, use the following command in your linux terminal, having installed MESA:

glxinfo | grep "OpenGL version"

In my case, my PC only supports it until version 2.1.


And because this is a big problem, since several programs that I use need opengl 3.0 (or higher) to run in a good way, like blender, which gives me glitches graphics every so often, or godot, which directly the 3d view does not work for me. So, in the meantime, I found this little trick that really is wonderful

Normally the opengl 3.0 or higher come in graphics cards (gpu), so it is necessary to buy a card to enjoy the power of the opengl, but, and if I do not have enough budget to pay for it? especially in these times where its value increased quite a lot, since, MESA has integrated a great software rasterizer.

What is MESA?

It is a set of software for the processing of advanced graphics, aiming to work both on dedicated GPUs and in the graphic accelerators integrated in the CPUs (such as Intel's IGP and AMD's APU). It includes drivers and implementations of different APIs, among which are OpenGL, OpenGL ES, OpenCL, OpenMAX, VDPAU, VA API, XvMC and Vulkan.

Then, for this it is necessary first to have installed MESA:

sudo apt-get install mesa

being this ready, check your version of opengl:
glxinfo | grep "OpenGL version"

You just have to use the following command

LIBGL_ALWAYS_SOFTWARE=1 /path/to/application

And so we went through this

To this

this will make the program they specify run forcing the rendering of the opengl 3.0 on its cpu, the more powerful its cpu, the better the rendering performance will be.

LIBGL_ALWAYS_SOFTWARE=1 glxinfo | grep OpenGL


So, those who could not run their programs or games because they did not comply with the necessary opengl, it will not be a problem anymore

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!