diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2011-06-05 18:50:55 -0400 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-06-05 20:52:15 -0400 |
commit | 1885cf27c9c4642a049c60a8236cb84735cb9eba (patch) | |
tree | 1319b66aeb8dfbe9949f047f48ff9ba0bb07cbaf /src/glx/glxcmds.c | |
parent | 3843bbcb4ca4de232dbae6ba3ae619ddfc93508b (diff) | |
download | external_mesa3d-1885cf27c9c4642a049c60a8236cb84735cb9eba.zip external_mesa3d-1885cf27c9c4642a049c60a8236cb84735cb9eba.tar.gz external_mesa3d-1885cf27c9c4642a049c60a8236cb84735cb9eba.tar.bz2 |
apple: Build darwin using applegl rather than indirect
This reverts portions of 6849916170c0275c13510251a7b217c20f2b993e that caused
the darwin config to fail to build due to missing implementations in that
commit.
See https://bugs.freedesktop.org/show_bug.cgi?id=29162
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'src/glx/glxcmds.c')
-rw-r--r-- | src/glx/glxcmds.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index 5bd989e..783a159 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -224,10 +224,14 @@ CreateContext(Display *dpy, int generic_id, struct glx_config *config, return NULL; gc = NULL; +#ifdef GLX_USE_APPLEGL + gc = applegl_create_context(psc, config, shareList, renderType); +#else if (allowDirect && psc->vtable->create_context) gc = psc->vtable->create_context(psc, config, shareList, renderType); if (!gc) gc = indirect_create_context(psc, config, shareList, renderType); +#endif if (!gc) return NULL; |