Lines Matching refs:gc
46 applegl_destroy_context(struct glx_context *gc)
48 apple_glx_destroy_context(&gc->driContext, gc->psc->dpy);
52 applegl_bind_context(struct glx_context *gc, struct glx_context *old,
55 Display *dpy = gc->psc->dpy;
58 gc ? gc->driContext : NULL, draw);
70 applegl_unbind_context(struct glx_context *gc, struct glx_context *new)
76 if (!gc)
83 dpy = gc->psc->dpy;
86 (gc != &dummyContext) ? gc->driContext : NULL,
93 applegl_wait_gl(struct glx_context *gc)
99 applegl_wait_x(struct glx_context *gc)
101 Display *dpy = gc->psc->dpy;
102 apple_glx_waitx(dpy, gc->driContext);
128 struct glx_context *gc;
137 gc = Xcalloc(1, sizeof (*gc));
138 if (gc == NULL)
141 if (!glx_context_init(gc, psc, config)) {
142 Xfree(gc);
146 gc->vtable = &applegl_context_vtable;
147 gc->driContext = NULL;
150 if(apple_glx_create_context(&gc->driContext, dpy, screen, config,
154 gc->vtable->destroy(gc);
158 gc->currentContextTag = -1;
159 gc->config = config;
160 gc->isDirect = GL_TRUE;
161 gc->xid = 1; /* Just something not None, so we know when to destroy
164 return gc;