How to install Mesa 18.2.2 in Ubuntu 18.04. The Mesa 3D Graphics Library Mesa 18.2.2 is a bug fix release which fixes bugs found since the 18.2.1 release.
Mesa 18.2.2 implements the OpenGL 4.5 API, but the version reported by glGetString(GL_VERSION) or glGetIntegerv(GL_MAJOR_VERSION) / glGetIntegerv(GL_MINOR_VERSION) depends on the particular driver being used. Some drivers don’t support all the features required in OpenGL 4.5. OpenGL 4.5 is only available if requested at context creation. Compatibility contexts may report a lower version depending on each driver.
The Mesa project began as an open-source implementation of the OpenGL specification – a system for rendering interactive 3D graphics. Over the years the project has grown to implement more graphics APIs, including OpenGL ES (versions 1, 2, 3), OpenCL, OpenMAX, VDPAU, VA API, XvMC and Vulkan. A variety of device drivers allows the Mesa libraries to be used in many different environments ranging from software emulation to complete hardware acceleration for modern GPUs. Mesa ties into several other open-source projects: the Direct Rendering Infrastructure and X.org to provide OpenGL support on Linux, FreeBSD and other operating systems.
Install Mesa 18.2.2 in Ubuntu 18.04
Run the following commands in terminal to install Mesa 18.2.2 in Ubuntu 18.04 and other Ubuntu Systems:
sudo add-apt-repository ppa:ubuntu-x-swat/updates
sudo apt-get dist-upgrade
glxinfo | grep "OpenGL version"
If you wish to downgrade to the default graphics drives for Ubuntu 18.04, run the following commands:
sudo apt-get install ppa-purge && sudo ppa-purge ppa:ubuntu-x-swat/updates
sudo apt-get dist-upgrade