Home | History | Annotate | Download | only in glx

Lines Matching refs:gc

230 glx_context_init(struct glx_context *gc,
233 gc->majorOpcode = __glXSetupForCommand(psc->display->dpy);
234 if (!gc->majorOpcode)
237 gc->screen = psc->scr;
238 gc->psc = psc;
239 gc->config = config;
240 gc->isDirect = GL_TRUE;
241 gc->currentContextTag = -1;
258 struct glx_context *gc;
271 gc = NULL;
273 gc = applegl_create_context(psc, config, shareList, renderType);
276 gc = psc->vtable->create_context(psc, config, shareList, renderType);
277 if (!gc)
278 gc = indirect_create_context(psc, config, shareList, renderType);
280 if (!gc)
290 req->reqType = gc->majorOpcode;
292 req->context = gc->xid = XAllocID(dpy);
296 req->isDirect = gc->isDirect;
305 req->reqType = gc->majorOpcode;
307 req->context = gc->xid = XAllocID(dpy);
312 req->isDirect = gc->isDirect;
325 req->reqType = gc->majorOpcode;
328 req->context = gc->xid = XAllocID(dpy);
333 req->isDirect = gc->isDirect;
347 gc->share_xid = shareList ? shareList->xid : None;
348 gc->imported = GL_FALSE;
349 gc->renderType = renderType;
351 return (GLXContext) gc;
407 struct glx_context *gc = (struct glx_context *) ctx;
409 if (gc == NULL || gc->xid == None)
413 if (!gc->imported)
414 glx_send_destroy_context(dpy, gc->xid);
416 if (gc->currentDpy) {
419 * Note that we set gc->xid = None above. In MakeContextCurrent()
422 gc->xid = None;
424 gc->vtable->destroy(gc);
475 struct glx_context *gc = __glXGetCurrentContext();
477 if (gc && gc->vtable->wait_gl)
478 gc->vtable->wait_gl(gc);
488 struct glx_context *gc = __glXGetCurrentContext();
490 if (gc && gc->vtable->wait_x)
491 gc->vtable->wait_x(gc);
497 struct glx_context *gc = __glXGetCurrentContext();
499 if (gc && gc->vtable->use_x_font)
500 gc->vtable->use_x_font(gc, font, first, count, listBase);
516 struct glx_context *gc = __glXGetCurrentContext();
520 if(apple_glx_copy_context(gc->driContext, source->driContext, dest->driContext,
527 struct glx_context *gc = __glXGetCurrentContext();
537 if (gc->isDirect) {
546 if (source == gc && dpy == gc->currentDpy) {
547 tag = gc->currentContextTag;
632 struct glx_context *gc = (struct glx_context *) gc_user;
634 if (!gc) {
637 else if (gc->isDirect) {
643 return __glXIsDirect(dpy, gc->xid);
785 struct glx_context * gc = __glXGetCurrentContext();
786 if(gc && apple_glx_is_current_drawable(dpy, gc->driContext, drawable)) {
787 apple_glx_swap_buffers(gc->driContext);
792 struct glx_context *gc;
801 gc = __glXGetCurrentContext();
808 if (gc && drawable == gc->currentDrawable) {
827 if ((gc != NULL) && (dpy == gc->currentDpy) &&
828 ((drawable == gc->currentDrawable)
829 || (drawable == gc->currentReadable))) {
830 tag = gc->currentContextTag;
1406 struct glx_context *gc = __glXGetCurrentContext();
1407 if (NULL == gc)
1409 return gc->currentDpy;
1595 struct glx_context *gc = (struct glx_context *) ctx;
1597 if (gc == NULL || gc->xid == None)
1609 if (gc->currentDpy) {
1610 gc->xid = None;
1612 gc->vtable->destroy(gc);
1656 struct glx_context *gc = __glXGetCurrentContext();
1658 return gc->currentReadable;
1738 struct glx_context *gc = __glXGetCurrentContext();
1744 if (gc == NULL) {
1752 psc = GetGLXScreenConfigs( gc->currentDpy, gc->screen);
1755 if (gc->isDirect && psc->driScreen && psc->driScreen->setSwapInterval) {
1757 GetGLXDRIDrawable(gc->currentDpy, gc->currentDrawable);
1763 dpy = gc->currentDpy;
1775 req->contextTag = gc->currentContextTag;
1795 struct glx_context *gc = __glXGetCurrentContext();
1797 if (gc != NULL && gc->isDirect) {
1800 psc = GetGLXScreenConfigs( gc->currentDpy, gc->screen);
1803 GetGLXDRIDrawable(gc->currentDpy, gc->currentDrawable);
1817 struct glx_context *gc = __glXGetCurrentContext();
1819 if (gc != NULL && gc->isDirect) {
1822 psc = GetGLXScreenConfigs( gc->currentDpy, gc->screen);
1825 GetGLXDRIDrawable(gc->currentDpy, gc->currentDrawable);
1843 struct glx_context *gc = __glXGetCurrentContext();
1849 if (!gc)
1853 if (!gc->isDirect)
1857 psc = GetGLXScreenConfigs(gc->currentDpy, gc->screen);
1859 pdraw = GetGLXDRIDrawable(gc->currentDpy, gc->currentDrawable);
1880 struct glx_context *gc = __glXGetCurrentContext();
1891 if (!gc)
1895 if (!gc->isDirect)
1899 psc = GetGLXScreenConfigs( gc->currentDpy, gc->screen);
1901 pdraw = GetGLXDRIDrawable(gc->currentDpy, gc->currentDrawable);
1996 GLXContext gc = NULL;
2008 gc = CreateContext(dpy, config->fbconfigID, config, shareList,
2014 return gc;
2200 struct glx_context *gc = __glXGetCurrentContext();
2206 if (!gc) /* no GLX for this */
2210 if (!pdraw || !gc->isDirect)
2359 struct glx_context *gc;
2386 gc = __glXGetCurrentContext();
2387 if ((gc != NULL) && (dpy == gc->currentDpy) &&
2388 ((drawable == gc->currentDrawable) ||
2389 (drawable == gc->currentReadable))) {
2390 tag = gc->currentContextTag;
2424 gc = __glXGetCurrentContext();
2426 if (gc == NULL || gc->vtable->bind_tex_image == NULL)
2429 gc->vtable->bind_tex_image(dpy, drawable, buffer, attrib_list);
2435 struct glx_context *gc = __glXGetCurrentContext();
2437 if (gc == NULL || gc->vtable->release_tex_image == NULL)
2440 gc->vtable->release_tex_image(dpy, drawable, buffer);
2656 struct glx_context *gc = __glXGetCurrentContext();
2658 if (gc != NULL && gc->vtable->get_proc_address != NULL)
2659 f = gc->vtable->get_proc_address((const char *) procName);