• Home
  • Raw
  • Download

Lines Matching refs:gc

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