+ wxCHECK_MSG( n >= 16, false, wxT("GL attributes buffer too small") );
+
+ /*
+ Different versions of GLX API use rather different attributes lists, see
+ the following URLs:
+
+ - <= 1.2: http://www.opengl.org/sdk/docs/man/xhtml/glXChooseVisual.xml
+ - >= 1.3: http://www.opengl.org/sdk/docs/man/xhtml/glXChooseFBConfig.xml
+
+ Notice in particular that
+ - GLX_RGBA is boolean attribute in the old version of the API but a
+ value of GLX_RENDER_TYPE in the new one
+ - Boolean attributes such as GLX_DOUBLEBUFFER don't take values in the
+ old version but must be followed by True or False in the new one.
+ */