![[Next]](buttons/ArrowRightOff.gif)
C Specification
void glPushClientAttrib(
GLbitfield mask)
void glPopClientAttrib(void)
Parameters
DescriptionThe symbolic mask constants and their associated GL client state are as follows (the second column lists which attributes are saved):
| GL_CLIENT_PIXEL_STORE_BIT | Pixel storage modes |
| GL_CLIENT_VERTEX_ARRAY_BIT | Vertex arrays (and enables) |
glPopClientAttrib restores the values of the client-state variables saved with the last glPushClientAttrib. Those not saved are left unchanged.
It is an error to push attributes onto a full client attribute stack, or to pop attributes off an empty stack. In either case, the error flag is set, and no other change is made to GL state.
Initially, the client attribute stack is empty.
NotesNot all values for GL client state can be saved on the attribute stack. For example, select and feedback state cannot be saved.
The depth of the attribute stack depends on the implementation, but it must be at least 16.
Use glPushAttrib and glPopAttrib to push and restore state which is kept on the server. Only pixel storage modes and vertex array state may be pushed and popped with glPushClientAttrib and glPopClientAttrib.
Errors
Associated Gets
See Also