S
glSelectBuffer
Chapter 17
399
Notes
The contents of buffer is undefined until glRenderModeis called with an argument other
than GL_SELECT.
glBegin/glEnd primitives and calls to glRasterPos can result in hits.
Errors
• GL_INVALID_VALUE is generated if size is negative.
• GL_INVALID_OPERATION is generated if glSelectBuffer is called while the render
mode is GL_SELECT, or if glRenderMode is called with argument GL_SELECT
before glSelectBuffer is called at least once.
• GL_INVALID_OPERATION is generated if glSelectBuffer is executed between the
execution of glBegin and the corresponding execution of glEnd.
Associated Gets
glGet with argument GL_NAME_STACK_DEPTH
See Also
glFeedbackBuffer,
glInitNames,
glLoadName,
glPushName,
glRenderMode