Ilya Averyanov wrote Pass null to third argument, does not look correct.
If attribList is NULL then glXChooseFBConfig returns an array of GLX frame buffer configurations that are available on the specified screen