I work on Ubuntu 20.04.
I updated graphics drivers and restarted X. I had to upgrade OpenGL since after upgrading drivers the OpenGL version was downgraded for some reason. I opened bash
terminal and updated the drivers as described here:
sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt update
sudo apt upgrade
Now, when I run glxinfo | grep "OpenGL version"
either on terminal opened from VSCode or from Ubuntu itself it shows version 4.5.
user@user:~$ glxinfo | grep "OpenGL version"
OpenGL version string: 4.5 (Compatibility Profile) Mesa 23.1.0 - kisak-mesa PPA
But, when I open the terminal from Qt Creator it shows version 3.1
user@user:~$ glxinfo | grep "OpenGL version"
OpenGL version string: 3.1 Mesa 21.2.6
How this even possible?