Updated OpenGL detection

The ConVar gl_max_version now displays the maximum supported OpenGL
version on the system.