Use highest available OpenGL version

Use highest available OpenGL version instead of OpenGL 3.1.