diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2014-05-12 16:30:26 +0100 |
---|---|---|
committer | Jeremy Huddleston Sequoia <jeremyhu@apple.com> | 2016-05-08 01:13:50 -0700 |
commit | 255d11874ab10a007239fa42b8a42fda106175db (patch) | |
tree | 1c2f5fb6e38a39f7380afa187d210830a83e4bd9 | |
parent | 1bef9a9d46b5e61fb546ec562e0d3cc974336f2d (diff) |
applegl: Provide requirements of _SET_DrawBuffers
_SET_DrawBuffers requires driDispatchRemapTable, so we need to link with
libmesa for remap.c. libmesa requires the C++ linker.
Also need to arrange to call _mesa_init_remap_table() to initialize the
remap table.
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@freedesktop.org>
-rw-r--r-- | src/glx/Makefile.am | 5 | ||||
-rw-r--r-- | src/glx/apple/apple_glapi.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/glx/Makefile.am b/src/glx/Makefile.am index d65fb81625..a4364ac2a0 100644 --- a/src/glx/Makefile.am +++ b/src/glx/Makefile.am @@ -143,7 +143,10 @@ libglx_la_SOURCES += \ applegl_glx.c SUBDIRS += apple -libglx_la_LIBADD += $(builddir)/apple/libappleglx.la +libglx_la_LIBADD += \ + $(builddir)/apple/libappleglx.la \ + $(top_builddir)/src/mesa/libmesa.la +nodist_EXTRA_lib@GL_LIB@_la_SOURCES = dummy.cpp endif GL_LIBS = \ diff --git a/src/glx/apple/apple_glapi.c b/src/glx/apple/apple_glapi.c index 4d19f7f6a3..849044bb8e 100644 --- a/src/glx/apple/apple_glapi.c +++ b/src/glx/apple/apple_glapi.c @@ -39,6 +39,7 @@ #include <GL/gl.h> #include "main/glheader.h" +#include "main/remap.h" #include "glapi.h" #include "glapitable.h" #include "main/dispatch.h" @@ -54,6 +55,8 @@ static void _apple_glapi_create_table(void) { if (__applegl_api) return; + _mesa_init_remap_table(); + __ogl_framework_api = _glapi_create_table_from_handle(apple_cgl_get_dl_handle(), "gl"); assert(__ogl_framework_api); |