Home | History | Annotate | Download | only in glx

Lines Matching refs:gc

254 glx_context_init(struct glx_context *gc,
257 gc->majorOpcode = __glXSetupForCommand(psc->display->dpy);
258 if (!gc->majorOpcode)
261 gc->screen = psc->scr;
262 gc->psc = psc;
263 gc->config = config;
264 gc->isDirect = GL_TRUE;
265 gc->currentContextTag = -1;
282 struct glx_context *gc;
295 gc = NULL;
297 gc = applegl_create_context(psc, config, shareList, renderType);
300 gc = psc->vtable->create_context(psc, config, shareList, renderType);
301 if (!gc)
302 gc = indirect_create_context(psc, config, shareList, renderType);
304 if (!gc)
314 req->reqType = gc->majorOpcode;
316 req->context = gc->xid = XAllocID(dpy);
320 req->isDirect = gc->isDirect;
329 req->reqType = gc->majorOpcode;
331 req->context = gc->xid = XAllocID(dpy);
336 req->isDirect = gc->isDirect;
349 req->reqType = gc->majorOpcode;
352 req->context = gc->xid = XAllocID(dpy);
357 req->isDirect = gc->isDirect;
371 gc->share_xid = shareList ? shareList->xid : None;
372 gc->imported = GL_FALSE;
374 return (GLXContext) gc;
457 struct glx_context *gc = (struct glx_context *) ctx;
459 if (gc == NULL || gc->xid == None)
463 if (!gc->imported)
464 glx_send_destroy_context(dpy, gc->xid);
466 if (gc->currentDpy) {
469 * Note that we set gc->xid = None above. In MakeContextCurrent()
472 gc->xid = None;
474 gc->vtable->destroy(gc);
525 struct glx_context *gc = __glXGetCurrentContext();
527 if (gc != &dummyContext && gc->vtable->wait_gl)
528 gc->vtable->wait_gl(gc);
538 struct glx_context *gc = __glXGetCurrentContext();
540 if (gc != &dummyContext && gc->vtable->wait_x)
541 gc->vtable->wait_x(gc);
547 struct glx_context *gc = __glXGetCurrentContext();
549 if (gc != &dummyContext && gc->vtable->use_x_font)
550 gc->vtable->use_x_font(gc, font, first, count, listBase);
566 struct glx_context *gc = __glXGetCurrentContext();
570 if(apple_glx_copy_context(gc->driContext, source->driContext, dest->driContext,
577 struct glx_context *gc = __glXGetCurrentContext();
587 if (gc->isDirect) {
596 if (source == gc && dpy == gc->currentDpy) {
597 tag = gc->currentContextTag;
663 struct glx_context *gc = (struct glx_context *) gc_user;
665 if (!gc) {
668 else if (gc->isDirect) {
674 return __glXIsDirect(dpy, gc->xid);
822 struct glx_context * gc = __glXGetCurrentContext();
823 if(gc != &DummyContext && apple_glx_is_current_drawable(dpy, gc->driContext, drawable)) {
824 apple_glx_swap_buffers(gc->driContext);
829 struct glx_context *gc;
834 gc = __glXGetCurrentContext();
841 Bool flush = gc != &dummyContext && drawable == gc->currentDrawable;
858 if ((gc != &dummyContext) && (dpy == gc->currentDpy) &&
859 ((drawable == gc->currentDrawable)
860 || (drawable == gc->currentReadable))) {
861 tag = gc->currentContextTag;
1386 struct glx_context *gc = __glXGetCurrentContext();
1387 if (gc == &dummyContext)
1389 return gc->currentDpy;
1578 struct glx_context *gc = (struct glx_context *) ctx;
1580 if (gc == NULL || gc->xid == None)
1592 if (gc->currentDpy) {
1593 gc->xid = None;
1595 gc->vtable->destroy(gc);
1661 struct glx_context *gc = __glXGetCurrentContext();
1663 return gc->currentReadable;
1743 struct glx_context *gc = __glXGetCurrentContext();
1749 if (gc == &dummyContext) {
1757 psc = GetGLXScreenConfigs( gc->currentDpy, gc->screen);
1760 if (gc->isDirect && psc && psc->driScreen &&
1763 GetGLXDRIDrawable(gc->currentDpy, gc->currentDrawable);
1773 dpy = gc->currentDpy;
1785 req->contextTag = gc->currentContextTag;
1805 struct glx_context *gc = __glXGetCurrentContext();
1807 if (gc != &dummyContext && gc->isDirect) {
1810 psc = GetGLXScreenConfigs( gc->currentDpy, gc->screen);
1813 GetGLXDRIDrawable(gc->currentDpy, gc->currentDrawable);
1834 struct glx_context *gc = __glXGetCurrentContext();
1836 if (gc != &dummyContext && gc->isDirect) {
1839 psc = GetGLXScreenConfigs( gc->currentDpy, gc->screen);
1842 GetGLXDRIDrawable(gc->currentDpy, gc->currentDrawable);
1861 struct glx_context *gc = __glXGetCurrentContext();
1867 if (gc == &dummyContext)
1871 if (!gc->isDirect)
1875 psc = GetGLXScreenConfigs(gc->currentDpy, gc->screen);
1877 pdraw = GetGLXDRIDrawable(gc->currentDpy, gc->currentDrawable);
1898 struct glx_context *gc = __glXGetCurrentContext();
1909 if (gc == &dummyContext)
1913 if (!gc->isDirect)
1917 psc = GetGLXScreenConfigs( gc->currentDpy, gc->screen);
1919 pdraw = GetGLXDRIDrawable(gc->currentDpy, gc->currentDrawable);
2014 GLXContext gc = NULL;
2026 gc = CreateContext(dpy, config->fbconfigID, config, shareList,
2032 return gc;
2216 struct glx_context *gc = __glXGetCurrentContext();
2222 if (gc == &dummyContext) /* no GLX for this */
2226 if (!pdraw || !gc->isDirect)
2375 struct glx_context *gc;
2401 gc = __glXGetCurrentContext();
2402 if ((gc != &dummyContext) && (dpy == gc->currentDpy) &&
2403 ((drawable == gc->currentDrawable) ||
2404 (drawable == gc->currentReadable))) {
2405 tag = gc->currentContextTag;
2439 struct glx_context *gc = __glXGetCurrentContext();
2441 if (gc == &dummyContext || gc->vtable->bind_tex_image == NULL)
2444 gc->vtable->bind_tex_image(dpy, drawable, buffer, attrib_list);
2450 struct glx_context *gc = __glXGetCurrentContext();
2452 if (gc == &dummyContext || gc->vtable->release_tex_image == NULL)
2455 gc->vtable->release_tex_image(dpy, drawable, buffer);
2660 struct glx_context *gc = __glXGetCurrentContext();
2662 if (gc != NULL && gc->vtable->get_proc_address != NULL)
2663 f = gc->vtable->get_proc_address((const char *) procName);
2723 struct glx_context *gc = (struct glx_context*)context;
2728 if (!gc || gc->xid == None || !gc->isDirect) {
2733 if (!gc->vtable->interop_query_device_info) {
2738 ret = gc->vtable->interop_query_device_info(gc, out);
2748 struct glx_context *gc = (struct glx_context*)context;
2753 if (!gc || gc->xid == None || !gc->isDirect) {
2758 if (!gc->vtable->interop_export_object) {
2763 ret = gc->vtable->interop_export_object(gc, in, out);