Lines Matching refs:gc
42 struct glx_context *gc = __glXGetCurrentContext(); in do_enable_disable() local
43 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in do_enable_disable()
51 __glXSetError(gc, GL_INVALID_ENUM); in do_enable_disable()
72 struct glx_context *gc = __glXGetCurrentContext(); in __indirect_glPushClientAttrib() local
73 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in __indirect_glPushClientAttrib()
74 __GLXattribute **spp = gc->attributes.stackPointer, *sp; in __indirect_glPushClientAttrib()
76 if (spp < &gc->attributes.stack[__GL_CLIENT_ATTRIB_STACK_DEPTH]) { in __indirect_glPushClientAttrib()
80 __glXSetError(gc, GL_OUT_OF_MEMORY); in __indirect_glPushClientAttrib()
86 gc->attributes.stackPointer = spp + 1; in __indirect_glPushClientAttrib()
96 __glXSetError(gc, GL_STACK_OVERFLOW); in __indirect_glPushClientAttrib()
104 struct glx_context *gc = __glXGetCurrentContext(); in __indirect_glPopClientAttrib() local
105 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in __indirect_glPopClientAttrib()
106 __GLXattribute **spp = gc->attributes.stackPointer, *sp; in __indirect_glPopClientAttrib()
109 if (spp > &gc->attributes.stack[0]) { in __indirect_glPopClientAttrib()
114 gc->attributes.stackPointer = spp; in __indirect_glPopClientAttrib()
127 __glXSetError(gc, GL_STACK_UNDERFLOW); in __indirect_glPopClientAttrib()
134 __glFreeAttributeState(struct glx_context * gc) in __glFreeAttributeState() argument
138 for (spp = &gc->attributes.stack[0]; in __glFreeAttributeState()
139 spp < &gc->attributes.stack[__GL_CLIENT_ATTRIB_STACK_DEPTH]; spp++) { in __glFreeAttributeState()