diff --git a/clutter/cogl/cogl/cogl-material-glsl.c b/clutter/cogl/cogl/cogl-material-glsl.c index c41fd6830..9f0f6fccd 100644 --- a/clutter/cogl/cogl/cogl-material-glsl.c +++ b/clutter/cogl/cogl/cogl-material-glsl.c @@ -38,6 +38,7 @@ #include "cogl-internal.h" #include "cogl-context.h" #include "cogl-handle.h" +#include "cogl-shader-private.h" #ifndef HAVE_COGL_GLES #include "cogl-program.h" diff --git a/clutter/egl/clutter-backend-egl.c b/clutter/egl/clutter-backend-egl.c index 7c2d9e907..d5e8ad542 100644 --- a/clutter/egl/clutter-backend-egl.c +++ b/clutter/egl/clutter-backend-egl.c @@ -765,7 +765,6 @@ static void _clutter_backend_egl_init (ClutterBackendEGL *backend_egl) { #ifndef COGL_HAS_XLIB_SUPPORT - ClutterBackend *backend = CLUTTER_BACKEND (backend_egl); #ifdef HAVE_TSLIB backend_egl->event_timer = g_timer_new (); diff --git a/clutter/egl/clutter-stage-egl.h b/clutter/egl/clutter-stage-egl.h index a20f4ed93..df8ebcf28 100644 --- a/clutter/egl/clutter-stage-egl.h +++ b/clutter/egl/clutter-stage-egl.h @@ -1,17 +1,23 @@ #ifndef __CLUTTER_STAGE_EGL_H__ #define __CLUTTER_STAGE_EGL_H__ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include +#ifdef COGL_HAS_X11_SUPPORT #include #include #include +#include "../x11/clutter-stage-x11.h" +#endif #include "clutter-egl-headers.h" #include "clutter-backend-egl.h" -#include "../x11/clutter-stage-x11.h" #define CLUTTER_TYPE_STAGE_EGL (_clutter_stage_egl_get_type ()) #define CLUTTER_STAGE_EGL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_STAGE_EGL, ClutterStageEGL)) @@ -25,14 +31,16 @@ typedef struct _ClutterStageEGLClass ClutterStageEGLClass; struct _ClutterStageEGL { - ClutterStageX11 parent_instance; - #ifdef COGL_HAS_X11_SUPPORT + ClutterStageX11 parent_instance; + EGLSurface egl_surface; #else + GObject parent_instance; + /* the stage wrapper */ ClutterStage *wrapper; @@ -44,7 +52,11 @@ struct _ClutterStageEGL struct _ClutterStageEGLClass { +#ifdef COGL_HAS_X11_SUPPORT ClutterStageX11Class parent_class; +#else + GObjectClass parent_class; +#endif }; GType _clutter_stage_egl_get_type (void) G_GNUC_CONST;