XCreateWindow is throwing a "bad match" X error at me. I suspect the error lies in the "class" argument - the value I provide (InputOutput) does not match the "class" value in my XVisualInfo structure. The value in that structure cannot be used, though - it's '4', which is not a valid "class" value. Is this possibly a bug in the nvidia GLX implementation?
Full code is
here (pastebin.com).