backends/stage-impl: Drop no longer useful CoglContext check
As initializing Clutter would fail making MetaBackend to fail before creating a MetaStage Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3977>
This commit is contained in:
parent
9c7f196ef6
commit
43295b80aa
1 changed files with 0 additions and 10 deletions
|
@ -79,21 +79,11 @@ meta_stage_impl_unrealize (ClutterStageWindow *stage_window)
|
||||||
static gboolean
|
static gboolean
|
||||||
meta_stage_impl_realize (ClutterStageWindow *stage_window)
|
meta_stage_impl_realize (ClutterStageWindow *stage_window)
|
||||||
{
|
{
|
||||||
ClutterBackend *backend;
|
|
||||||
|
|
||||||
meta_topic (META_DEBUG_BACKEND,
|
meta_topic (META_DEBUG_BACKEND,
|
||||||
"Realizing stage '%s' [%p]",
|
"Realizing stage '%s' [%p]",
|
||||||
G_OBJECT_TYPE_NAME (stage_window),
|
G_OBJECT_TYPE_NAME (stage_window),
|
||||||
stage_window);
|
stage_window);
|
||||||
|
|
||||||
backend = clutter_get_default_backend ();
|
|
||||||
|
|
||||||
if (backend->cogl_context == NULL)
|
|
||||||
{
|
|
||||||
g_warning ("Failed to realize stage: missing Cogl context");
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue