diff options
author | Jeremy Huddleston <[email protected]> | 2012-03-16 17:03:54 -0700 |
---|---|---|
committer | Jeremy Huddleston <[email protected]> | 2012-03-16 17:09:22 -0700 |
commit | f9e1295cffc3cf096611e193cca016326715e6ca (patch) | |
tree | a0b13253c13637be99842d13241c5cdd3c5553d6 | |
parent | 61f6aff5d9136c91ca4a16de04c7ae673e9433df (diff) |
darwin: Build create_context.c
Fixes a build regression from: 588042a8ec4ea91a952c07a0768516fd590758f4
Signed-off-by: Jeremy Huddleston <[email protected]>
-rw-r--r-- | src/glx/apple/Makefile | 1 | ||||
-rw-r--r-- | src/glx/create_context.c | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/glx/apple/Makefile b/src/glx/apple/Makefile index 66e665849ad..dc64295f73c 100644 --- a/src/glx/apple/Makefile +++ b/src/glx/apple/Makefile @@ -35,6 +35,7 @@ SOURCES = \ apple_xgl_api_stereo.c \ apple_xgl_api_viewport.c \ appledri.c \ + ../create_context.c \ ../clientattrib.c \ ../compsize.c \ ../glxconfig.c \ 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; |