M
glXMakeCurrent
Chapter 11
273
Errors
• BadMatch is generated if drawable was not created with the same X screen and
visual as ctx. It is also generated if drawable is None and ctx is not NULL.
• BadAccess is generated if ctx was current to another thread at the time
glXMakeCurrent was called.
• GLXBadDrawable is generated if drawable is not a valid GLX drawable.
• GLXBadContext is generated if ctx is not a valid GLX context.
• GLXBadContextState is generated if glXMakeCurrent is executed between the
execution of glBegin and the corresponding execution of glEnd.
• GLXBadContextState is also generated if the rendering context current to the
calling thread has GL renderer state GL_FEEDBACK or GL_SELECT.
• GLXBadCurrentWindow is generated if there are pending GL commands for the
previous context and the current drawable is a window that is no longer valid.
• BadAlloc may be generated if the server has delayed allocation of ancillary buffers
until glXMakeCurrent is called, only to find that it has insufficient resources to
complete the allocation.
See Also
glXCreateContext,
glXCreateGLXPixmap