&dummy_err);
}
- if (gc == NULL)
- gc = indirect_create_context(psc, cfg, share, 0);
+ if (gc == NULL) {
+#ifdef GLX_USE_APPLEGL
+ 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
+ }
gc->xid = xcb_generate_id(c);
gc->share_xid = (share != NULL) ? share->xid : 0;