+
+ int returned;
+ return glXChooseFBConfig( GDK_DISPLAY(), DefaultScreen(GDK_DISPLAY()),
+ attribList, &returned );
+}
+
+
+void wxGLCanvas::GetGLAttribListFromWX(int *wx_attribList, int *gl_attribList )
+{
+ if (!wx_attribList)
+ {
+ if (wxGLCanvas::GetGLXVersion() >= 13)
+ // leave GLX >= 1.3 choose the default attributes
+ gl_attribList[0] = 0;
+ else
+ {
+ int i = 0;
+ // default settings if attriblist = 0
+ gl_attribList[i++] = GLX_RGBA;
+ gl_attribList[i++] = GLX_DOUBLEBUFFER;
+ gl_attribList[i++] = GLX_DEPTH_SIZE; gl_attribList[i++] = 1;
+ gl_attribList[i++] = GLX_RED_SIZE; gl_attribList[i++] = 1;
+ gl_attribList[i++] = GLX_GREEN_SIZE; gl_attribList[i++] = 1;
+ gl_attribList[i++] = GLX_BLUE_SIZE; gl_attribList[i++] = 1;
+ gl_attribList[i++] = GLX_ALPHA_SIZE; gl_attribList[i++] = 0;
+ gl_attribList[i++] = None;
+ }