diff --git a/cogl/Makefile.am b/cogl/Makefile.am index f7fb8b172..d2de76a54 100644 --- a/cogl/Makefile.am +++ b/cogl/Makefile.am @@ -294,6 +294,10 @@ if SUPPORT_EGL_PLATFORM_FRUITY cogl_sources_c += \ $(srcdir)/winsys/cogl-fruity.c endif +if SUPPORT_EGL_PLATFORM_DRM_SURFACELESS +cogl_sources_c += \ + $(srcdir)/winsys/cogl-egl.c +endif if SUPPORT_WIN32 cogl_sources_c += \ $(srcdir)/winsys/cogl-win32.c diff --git a/cogl/winsys/cogl-egl.c b/cogl/winsys/cogl-egl.c index 1849ea27f..bafafc0ac 100644 --- a/cogl/winsys/cogl-egl.c +++ b/cogl/winsys/cogl-egl.c @@ -27,11 +27,15 @@ #include "cogl.h" -#ifdef HAVE_COGL_GLES2 +#ifdef HAVE_STANDALONE_EGL #include -#else /* HAVE_COGL_GLES2 */ +#include +#define NativeDisplayType EGLNativeDisplayType +#define NativeWindowType EGLNativeWindowType +#else #include -#endif /* HAVE_COGL_GLES2 */ +#include +#endif CoglFuncPtr _cogl_winsys_get_proc_address (const char *name)