darwin: Build create_context.c
Fixes a build regression from: 588042a8ec
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user