diff --git a/clutter/cogl/clutter-egl-headers.h b/clutter/cogl/clutter-egl-headers.h index 402ded259..15ec994f2 100644 --- a/clutter/cogl/clutter-egl-headers.h +++ b/clutter/cogl/clutter-egl-headers.h @@ -22,25 +22,9 @@ #ifndef __CLUTTER_EGL_HEADERS_H__ #define __CLUTTER_EGL_HEADERS_H__ +/* Clutter relies on Cogl to abstract GLES1/2/OpenGL and GLX/EGL etc + * so we simply include the Cogl header to pull in the appropriate EGL + * header. */ #include -#if defined(COGL_HAS_GLES1) -#include -#include -#else - -#include -#define NativeDisplayType EGLNativeDisplayType -#define NativeWindowType EGLNativeWindowType - -#if defined(COGL_HAS_GLES2) -#include -#elif defined(COGL_HAS_GL) -#include -#else -#error Unknown Cogl backend -#endif - -#endif /* !COGL_HAS_GLES1 */ - #endif /* __CLUTTER_EGL_HEADERS_H__ */