darwin: Build create_context.c

Fixes a build regression from: 588042a8ec

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
(cherry picked from commit f9e1295cff)
This commit is contained in:
Jeremy Huddleston 2012-03-16 17:03:54 -07:00
parent 485d1c491a
commit 63c8f7142c
2 changed files with 7 additions and 1 deletions

View file

@ -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 \

View file

@ -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;