Lines Matching refs:gc
46 applegl_destroy_context(struct glx_context *gc)
48 apple_glx_destroy_context(&gc->driContext, gc->psc->dpy);
53 struct glx_context *gc, struct glx_context *old,
56 Display *dpy = gc->psc->dpy;
60 gc ? gc->driContext : NULL, draw);
72 applegl_unbind_context(struct glx_context *gc, struct glx_context *new)
78 if (!gc)
85 dpy = gc->psc->dpy;
89 (gc != &dummyContext) ? gc->driContext : NULL,
96 applegl_wait_gl(struct glx_context *gc)
102 applegl_wait_x(struct glx_context *gc)
104 Display *dpy = gc->psc->dpy;
105 apple_glx_waitx(dpy, gc->driContext);
128 struct glx_context *gc;
140 gc = calloc(1, sizeof(*gc));
141 if (gc == NULL)
144 if (!glx_context_init(gc, psc, config)) {
145 free(gc);
149 gc->vtable = &applegl_context_vtable;
150 gc->driContext = NULL;
153 if (apple_glx_create_context(&gc->driContext, dpy, screen, config,
157 gc->vtable->destroy(gc);
161 gc->currentContextTag = -1;
162 gc->config = config;
163 gc->isDirect = GL_TRUE;
164 gc->xid = 1; /* Just something not None, so we know when to destroy
167 return gc;