Creating windows or GLX pixmaps with unnecessary buffers can result in reduced rendering performance and poor resource allocation. Parameters dpy Specifies the connection to the X server. Visual Specifies the visual to be queried. Visual is a pointer to an XVisualInfo structure, not a visual ID or a pointer to a Visual structure. Attribute Specifies the visual attribute to be returned.
Value Returns the requested value.
Notes XVisualInfo is defined in the Xutil.h file. It is a structure that includes Visual , VisualID , Screen , and Depth elements. Return Values GLXNoExtension dpy does not support the GLX extension. The Visual screen does not correspond to a valid screen. GLXBadAttrib Attribute is not a valid GLX attribute.