OpenGL: Couldn’t get an RGB, Double-buffered Visual
When running an OpenGL application, the app may fail with the following error
“Error: couldn’t get an RGB, Double-buffered visual”
Newer versions of the GLX library favor direct software rendering over accelerated indirect rendering. When using OpenGL it’s best to set the environment variable in the startup scripts.
Adding the command “export LIBGL_ALWAYS_INDIRECT=1” forces indirect rendering to be used.
Appending “export LIBGL_ALWAYS_INDIRECT=1” to $HOME/.bashrc sets the variable on every login