Do the glx commands produce X11 Events and if so do they need to be
synchronized with the X11 event thread?
I have a OpenGL rendering thread and during initialization the first
frame only renders the textures or the program exits with "XIO error
0". This only occurs during initialization.