From 446107f19d59ab95c918e566b5d8efdb8c0841c8 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 24 Nov 2010 12:02:38 +0000 Subject: [PATCH] x11: Check for initialized context when enabling ARGB visuals Instead of using the backend singleton. This allows lazy initialization of Clutter. http://bugzilla.clutter-project.org/show_bug.cgi?id=2435 --- clutter/x11/clutter-backend-x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/x11/clutter-backend-x11.c b/clutter/x11/clutter-backend-x11.c index f32a5fe9e..cd0174891 100644 --- a/clutter/x11/clutter-backend-x11.c +++ b/clutter/x11/clutter-backend-x11.c @@ -968,7 +968,7 @@ clutter_x11_has_composite_extension (void) void clutter_x11_set_use_argb_visual (gboolean use_argb) { - if (backend_singleton != NULL) + if (_clutter_context_is_initialized ()) { g_warning ("%s() can only be used before calling clutter_init()", G_STRFUNC);