Nvidia dirver do not work normally on OpenGL

I have installed the driver from the Additional Drivers tab of the Software & Update window on Ubuntu 20.04, but it does’t work normally on OpenGL. However, the command nvidia-smi works fine.I already tried sudo prime-select nvidia && sudo reboot to switch the nvidia card as primary gpu, but it didn’t work either. How should I do to solve this problem?

1 Like

nvidia-smi output:

glxinfo | grep OpenGL output:

prime-select output:
Usage: /usr/bin/prime-select nvidia|intel|on-demand|query