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);
124 struct glx_context *gc;
136 gc = calloc(1, sizeof(*gc));
137 if (gc == NULL)
140 if (!glx_context_init(gc, psc, config)) {
141 free(gc);
145 gc->vtable = &applegl_context_vtable;
146 gc->driContext = NULL;
149 if(apple_glx_create_context(&gc->driContext, dpy, screen, config,
153 gc->vtable->destroy(gc);
157 gc->currentContextTag = -1;
158 gc->config = config;
159 gc->isDirect = GL_TRUE;
160 gc->xid = 1; /* Just something not None, so we know when to destroy
163 return gc;