mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-22 09:40:40 +02:00
darwin: Build create_context.c
Fixes a build regression from: 588042a8ec
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
parent
61f6aff5d9
commit
f9e1295cff
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