1
0
Fork 0

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:
Bilal Elmoussaoui 2024-08-21 02:06:43 +02:00
parent 9c7f196ef6
commit 43295b80aa

View file

@ -79,21 +79,11 @@ meta_stage_impl_unrealize (ClutterStageWindow *stage_window)
static gboolean
meta_stage_impl_realize (ClutterStageWindow *stage_window)
{
ClutterBackend *backend;
meta_topic (META_DEBUG_BACKEND,
"Realizing stage '%s' [%p]",
G_OBJECT_TYPE_NAME (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;
}