From 86fd72448cfe3fbb37a84dcbd944ef26cd08635a Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Fri, 23 Jul 2021 16:13:45 -0400 Subject: [PATCH] glx: Disable the indirect fallback in CreateContextAttribs If your app cares enough to use CreateContextAttribs it's probably not going to be happy with the pre-GL-1.5 indirect experience. Part-of: --- src/glx/create_context.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/glx/create_context.c b/src/glx/create_context.c index 47132164146..fcf468f33ab 100644 --- a/src/glx/create_context.c +++ b/src/glx/create_context.c @@ -109,16 +109,16 @@ glXCreateContextAttribsARB(Display *dpy, GLXFBConfig config, gc = psc->vtable->create_context_attribs(psc, cfg, share, num_attribs, (const uint32_t *) attrib_list, &dummy_err); - } - - if (gc == NULL) { + } #ifdef GLX_USE_APPLEGL + else if (gc == NULL) { gc = applegl_create_context(psc, cfg, share, 0); -#else - gc = indirect_create_context_attribs(psc, cfg, share, num_attribs, - (const uint32_t *) attrib_list, - &dummy_err); + } #endif + else if (!direct) { + gc = indirect_create_context_attribs(psc, cfg, share, num_attribs, + (const uint32_t *) attrib_list, + &dummy_err); } xid = xcb_generate_id(c);