diff options
author | Simon Richter <Simon.Richter@hogyros.de> | 2013-04-16 20:04:42 +0200 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-04-18 11:21:29 +0800 |
commit | 27b862dc6cab1c6ca0fbdaae7493a47688c0bcdf (patch) | |
tree | 909255d0820766fc3fcaf3a928dc14d026343e2c /utests | |
parent | a8bf5a08865f2132bcbe1a8f740c407dbcba9f94 (diff) |
Make EGL optional
This fixes builds if EGL is unavailable. The OpenGL sharing extension will
be disabled then.
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'utests')
-rw-r--r-- | utests/utest_helper.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utests/utest_helper.hpp b/utests/utest_helper.hpp index b52174d1..02249e1a 100644 --- a/utests/utest_helper.hpp +++ b/utests/utest_helper.hpp @@ -41,6 +41,10 @@ #include <EGL/egl.h> #include <EGL/eglext.h> #include <CL/cl_gl.h> + +extern EGLDisplay eglDisplay; +extern EGLContext eglContext; +extern EGLSurface eglSurface; #endif #define OCL_THROW_ERROR(FN, STATUS) \ @@ -128,10 +132,6 @@ extern cl_mem buf[MAX_BUFFER_N]; extern void* buf_data[MAX_BUFFER_N]; extern size_t globals[3]; extern size_t locals[3]; -extern Display *xDisplay; -extern EGLDisplay eglDisplay; -extern EGLSurface eglSurface; - enum { SOURCE = 0, |