egl: Fix build for --with-flavour=opengl-egl-xlib

Make sure the EGL backend doesn't forget to include desktop OpenGL headers.
This commit is contained in:
nobled 2011-01-04 13:56:05 +00:00 committed by Damien Lespiau
parent 530bc2aa70
commit 6bb81a542f

View File

@ -24,17 +24,23 @@
#include <cogl/cogl.h> #include <cogl/cogl.h>
#ifdef COGL_HAS_GLES2 #if defined(COGL_HAS_GLES1)
#include <GLES2/gl2.h>
#include <EGL/egl.h>
#else /* COGL_HAS_GLES2 */
#include <GLES/gl.h> #include <GLES/gl.h>
#include <GLES/egl.h> #include <GLES/egl.h>
#endif /* COGL_HAS_GLES2 */ #else
#ifdef COGL_HAS_GLES2 #include <EGL/egl.h>
#define NativeDisplayType EGLNativeDisplayType #define NativeDisplayType EGLNativeDisplayType
#define NativeWindowType EGLNativeWindowType #define NativeWindowType EGLNativeWindowType
#endif /* COGL_HAS_GLES2 */
#if defined(COGL_HAS_GLES2)
#include <GLES2/gl2.h>
#elif defined(COGL_HAS_GL)
#include <GL/gl.h>
#else
#error Unknown Cogl backend
#endif
#endif /* !COGL_HAS_GLES1 */
#endif /* __CLUTTER_EGL_HEADERS_H__ */ #endif /* __CLUTTER_EGL_HEADERS_H__ */