Lines Matching refs:gc
131 if (gc->error) {
133 retval = gc->error;
134 gc->error = GL_NO_ERROR;
155 get_client_data(struct glx_context * gc, GLenum cap, GLintptr * data)
158 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private);
297 *data = (GLintptr) (gc->attributes.stackPointer - gc->attributes.stack);
345 if (get_client_data(gc, val, &data)) {
396 if (get_client_data(gc, val, &data)) {
447 if (get_client_data(gc, val, &data)) {
498 if (get_client_data(gc, val, &data)) {
553 gc->feedbackBuf = buffer;
569 gc->selectBuf = buffer;
597 if (gc->renderMode == GL_FEEDBACK) {
599 __GLX_SINGLE_GET_FLOAT_ARRAY(gc->feedbackBuf, compsize);
601 else if (gc->renderMode == GL_SELECT) {
603 __GLX_SINGLE_GET_LONG_ARRAY(gc->selectBuf, compsize);
605 gc->renderMode = mode;
645 struct glx_context *gc = __glXGetCurrentContext();
646 Display *dpy = gc->currentDpy;
657 if (gc->vendor)
658 return gc->vendor;
661 if (gc->renderer)
662 return gc->renderer;
665 if (gc->version)
666 return gc->version;
669 if (gc->extensions)
670 return gc->extensions;
673 __glXSetError(gc, GL_INVALID_ENUM);
681 (void) __glXFlushRenderBuffer(gc, gc->pc);
682 s = (GLubyte *) __glXGetString(dpy, gc->majorOpcode, gc->currentContextTag,
686 __glXSetError(gc, GL_OUT_OF_MEMORY);
694 gc->vendor = s;
698 gc->renderer = s;
706 &gc->server_major, &gc->server_minor);
709 if ((gc->server_major < client_major)
710 || ((gc->server_major == client_major)
711 && (gc->server_minor <= client_minor))) {
712 gc->version = s;
722 gc->version = malloc(size);
723 if (gc->version == NULL) {
733 gc->version = s;
736 snprintf((char *) gc->version, size, "%u.%u (%s)",
739 s = gc->version;
766 /* Call glGetString just to make sure that gc->server_major and
767 * gc->server_minor are set. This version may be higher than we
779 major = gc->server_major, minor = gc->server_minor;
782 __glXCalculateUsableGLExtensions(gc, (char *) s, major, minor);
784 s = gc->extensions;
796 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private);
836 struct glx_context *gc = __glXGetCurrentContext();
837 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private);
838 Display *dpy = gc->currentDpy;
862 *params = (void *) gc->feedbackBuf;
865 *params = (void *) gc->selectBuf;
868 __glXSetError(gc, GL_INVALID_ENUM);
884 struct glx_context *const gc = __glXGetCurrentContext();
885 Display *const dpy = gc->currentDpy;
890 (void) __glXFlushRenderBuffer(gc, gc->pc);
894 (c, gc->currentContextTag, n,
915 struct glx_context *const gc = __glXGetCurrentContext();
917 if (gc->isDirect) {
925 struct glx_context *const gc = __glXGetCurrentContext();
926 Display *const dpy = gc->currentDpy;
931 __glXSetupVendorRequest(gc, X_GLXVendorPrivateWithReply,