summaryrefslogtreecommitdiffstats
path: root/src/glx/tests/fake_glx_screen.cpp
diff options
context:
space:
mode:
authorJon Turney <[email protected]>2018-01-25 17:34:54 +0000
committerJon Turney <[email protected]>2018-02-02 15:28:52 +0000
commit63041ba61308a0576c73cb6bc3d98540669188cf (patch)
tree8f4440e4c2aa3010fed2276ef3d2c6911e1eef18 /src/glx/tests/fake_glx_screen.cpp
parent4761a8fea604b11e31c4e044ffc6d3d0b068a621 (diff)
glx/test: fix building for osx
An additional stub for applegl_create_context() is needed Cannot test indirect API as it's not built on osx, currently Signed-off-by: Jon Turney <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/glx/tests/fake_glx_screen.cpp')
-rw-r--r--src/glx/tests/fake_glx_screen.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/glx/tests/fake_glx_screen.cpp b/src/glx/tests/fake_glx_screen.cpp
index 801f54a6faa..ca0ca368053 100644
--- a/src/glx/tests/fake_glx_screen.cpp
+++ b/src/glx/tests/fake_glx_screen.cpp
@@ -75,6 +75,18 @@ indirect_create_context_attribs(struct glx_screen *base,
return indirect_create_context(base, config_base, shareList, 0);
}
+#ifdef GLX_USE_APPLEGL
+#warning Indirect GLX tests are not built
+extern "C" struct glx_context *
+applegl_create_context(struct glx_screen *base,
+ struct glx_config *config_base,
+ struct glx_context *shareList,
+ int renderType)
+{
+ return indirect_create_context(base, config_base, shareList, renderType);
+}
+#endif
+
/* This is necessary so that we don't have to link with glxcurrent.c
* which would require us to link with X libraries and what not.
*/