summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/waffle/glx/glx_platform.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/waffle/glx/glx_platform.h b/src/waffle/glx/glx_platform.h
index 4c381a6..352eba4 100644
--- a/src/waffle/glx/glx_platform.h
+++ b/src/waffle/glx/glx_platform.h
@@ -19,6 +19,8 @@
struct native_dispatch;
union native_platform;
+#ifdef WAFFLE_HAS_GLX
+
union native_platform*
glx_platform_create(
int gl_api,
@@ -26,3 +28,21 @@ glx_platform_create(
bool
glx_platform_destroy(union native_platform *self);
+
+#else
+
+static inline union native_platform*
+glx_platform_create(
+ int gl_api,
+ const struct native_dispatch **dispatch)
+{
+ return NULL;
+}
+
+static inline bool
+glx_platform_destroy(union native_platform *self)
+{
+ return true;
+}
+
+#endif