Lines Matching refs:gc
111 struct glx_context *gc = __glXGetCurrentContext();
112 return gc->currentDrawable;
125 struct glx_context *gc = (struct glx_context *) gc_user;
132 if ((gc != NULL) && (gc->xid == None)) {
139 if (oldGC == gc &&
140 gc->currentDrawable == draw && gc->currentReadable == read) {
153 oldGC->vtable->unbind(oldGC, gc);
157 if (gc) {
159 * gc and __glXSetCurrentContext to properly handle our state in
166 if (gc->vtable->bind(gc, oldGC, draw, read) != Success) {
173 gc->currentDpy = dpy;
174 gc->currentDrawable = draw;
175 gc->currentReadable = read;
176 __glXSetCurrentContext(gc);
194 glXMakeCurrent(Display * dpy, GLXDrawable draw, GLXContext gc)
196 return MakeContextCurrent(dpy, draw, draw, gc, X_GLXMakeCurrent);