C
glXCreateContext
Chapter 3
88
Notes
XVisualInfo is defined in Xutil.h. It is a structure that includes visual, visualID, screen,
and depth elements.
A process is a single execution environment, implemented in a single address space,
consisting of one or more threads.
A thread is one of a set of subprocesses that share a single address space, but maintain
separate program counters, stack spaces, and other related global data. A thread that is
the only member of its subprocess group is equivalent to a process.
It may not be possible to render to a GLX pixmap with a direct rendering context.
Errors
• NULL is returned if execution fails on the client side.
• BadMatch is generated if the context to be created would not share the address
space or the screen of the context specified by shareList.
• BadValue is generated if vis is not a valid visual (for example, if a particular GLX
implementation does not support it).
• GLXBadContext is generated if shareList is not a GLX context and is not NULL.
• BadAlloc is generated if the server does not have enough resources to allocate the
new context.
See Also
glXDestroyContext,
glXGetConfig,
glXIsDirect,
glXMakeCurrent