mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-31 20:00:24 +01:00
darwin: Build create_context.c
Fixes a build regression from:588042a8ecSigned-off-by: Jeremy Huddleston <jeremyhu@apple.com> (cherry picked from commitf9e1295cff)
This commit is contained in:
parent
485d1c491a
commit
63c8f7142c
2 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue