From 33f854ccfe09cb1e138b6393cab57d6f23178f99 Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Tue, 17 Apr 2012 16:20:54 +0300 Subject: Allow compiling with glx disabled Signed-off-by: Pauli Nieminen --- src/waffle/glx/glx_platform.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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 -- cgit v1.2.3