summaryrefslogtreecommitdiff
path: root/src/glx/create_context.c
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2012-03-16 17:03:54 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2012-03-16 17:09:22 -0700
commitf9e1295cffc3cf096611e193cca016326715e6ca (patch)
treea0b13253c13637be99842d13241c5cdd3c5553d6 /src/glx/create_context.c
parent61f6aff5d9136c91ca4a16de04c7ae673e9433df (diff)
darwin: Build create_context.c
Fixes a build regression from: 588042a8ec4ea91a952c07a0768516fd590758f4 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'src/glx/create_context.c')
-rw-r--r--src/glx/create_context.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/glx/create_context.c b/src/glx/create_context.c
index 714f0e5927..a1a55b3353 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;