diff options
author | Pauli Nieminen <pauli.nieminen@linux.intel.com> | 2012-04-17 16:20:54 +0300 |
---|---|---|
committer | Pauli Nieminen <pauli.nieminen@linux.intel.com> | 2012-04-17 18:06:13 +0300 |
commit | 33f854ccfe09cb1e138b6393cab57d6f23178f99 (patch) | |
tree | 7d809a4c0031f3cf568d534d0f3bb93b0477cc2d | |
parent | 113e5deb1c6b8972c821f3585e1754816ebb388e (diff) |
Allow compiling with glx disabled
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
-rw-r--r-- | src/waffle/glx/glx_platform.h | 20 |
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 |