mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
gdk/stage: Warn if CoglContext is not available
Instead of crashing inside Cogl later on. https://bugzilla.gnome.org/show_bug.cgi?id=745229
This commit is contained in:
parent
97ea9e973d
commit
3b98103b72
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user