I'm working on code very similar to this:
http://xcb.freedesktop.org/opengl/
It works fine when I use the default framebuffer configuration, although when I try to query a certain one it fails. I've determined that it fails whenever VISUAL_ID
(visualID
in the example code) and screen->root_visual
are different values.
Here is the error message:
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 135 (GLX)
Minor opcode of failed request: 31 (X_GLXCreateWindow)
Resource id in failed request: 0x1600003
Serial number of failed request: 32
Current serial number in output stream: 34
What can I do to fix this?