diff --git a/clutter/gdk/clutter-stage-gdk.c b/clutter/gdk/clutter-stage-gdk.c index 94b49bb33..e855a985c 100644 --- a/clutter/gdk/clutter-stage-gdk.c +++ b/clutter/gdk/clutter-stage-gdk.c @@ -185,6 +185,12 @@ clutter_stage_gdk_realize (ClutterStageWindow *stage_window) gboolean use_alpha; gfloat width, height; + if (backend->cogl_context == NULL) + { + g_warning ("Missing Cogl context: was Clutter correctly initialized?"); + return FALSE; + } + if (stage_gdk->foreign_window) { width = gdk_window_get_width (stage_gdk->window);