diff options
Diffstat (limited to 'src/glx/create_context.c')
-rw-r--r-- | src/glx/create_context.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/glx/create_context.c b/src/glx/create_context.c index 714f0e59271..a1a55b33538 100644 --- a/src/glx/create_context.c +++ b/src/glx/create_context.c @@ -80,8 +80,13 @@ glXCreateContextAttribsARB(Display *dpy, GLXFBConfig config, &dummy_err); } - if (gc == NULL) + if (gc == NULL) { +#ifdef GLX_USE_APPLEGL + gc = applegl_create_context(psc, cfg, share, 0); +#else gc = indirect_create_context(psc, cfg, share, 0); +#endif + } gc->xid = xcb_generate_id(c); gc->share_xid = (share != NULL) ? share->xid : 0; |