How to update OpenGL 3.1 to 4.6 on Ubuntu 18.04

Hi everyone,
I am going to update the OpenGL version from 3.1 to 4.6.

My OpenGL is currently run on mesa driver as below:

abner@abner-Genie-VIG860S:~$ glxinfo | grep "OpenGL version"
OpenGL version string: 3.1 Mesa 20.0.8

If updating it to 4.6 is done successfully, OpenGL should be run on Nvidia-driver like this:
OpenGL version string: 4.6.0 NVIDIA 460.91.03

Here is my Nvidia driver:
NVIDIA-SMI 470.63.01

I have been struggling with achieving this for hours but I failed. Can anyone have an idea on how to run OpenGL on Nvidia instead of mesa or any idea to solve this issue? Appreciate your help:)

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.