Completes X processing prior to subsequent OpenGL calls.
OpenGL C bindings library: libGL.a
void glXWaitX( void )
The glXWaitX subroutine ensures that X processing is complete before any subsequent OpenGL rendering calls are processed. Any X rendering calls made prior to the glXWaitX subroutine are completed before any OpenGL rendering calls made after glXWaitX. Although this same result can be achieved using XSync, the glXWaitX subroutine does not require a round-trip to the server. Therefore, glXWaitX is more efficient in cases where the client and server are on separate machines.
The glXWaitX subroutine is ignored if there is no current GLX context.
Using the glXWaitX subroutine may or may not flush the OpenGL stream.
GLXBadCurrentWindow | Is generated if the drawable associated with the current context of the calling thread is a window, and that window is no longer valid. |
The glFinish subroutine, glFlush subroutine, glXWaitGL subroutine.
OpenGL in the AIXwindows (GLX) Environment.