+ GetGLAttribListFromWX( attribList, data );
+ attribList = (int*) data;
+
+ Display *dpy = GDK_DISPLAY();
+
+ return glXChooseVisual( dpy, DefaultScreen(dpy), attribList );
+}
+
+void* wxGLCanvas::ChooseGLFBC(int *attribList)
+{
+ int data[512];
+ GetGLAttribListFromWX( attribList, data );
+ attribList = (int*) data;
+
+ int returned;
+ return glXChooseFBConfig( GDK_DISPLAY(), DefaultScreen(GDK_DISPLAY()),
+ attribList, &returned );
+}
+
+
+void wxGLCanvas::GetGLAttribListFromWX(int *wx_attribList, int *gl_attribList )
+{
+ if (!wx_attribList)