summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2010-11-24 12:02:38 +0000
committerEmmanuele Bassi <ebassi@linux.intel.com>2010-11-24 12:04:54 +0000
commit8b24149fd1b044ceccf90d96174787362c95a46b (patch)
tree7ee448d936dd21e0d4025637ccc34987bbe2df34
parenta4a589bb3567eeabd83edd5492c90721444bf20f (diff)
downloadclutter-1.2.tar.gz
x11: Check for initialized context when enabling ARGB visualsclutter-1.2
Instead of using the backend singleton. This allows lazy initialization of Clutter. http://bugzilla.clutter-project.org/show_bug.cgi?id=2435 (cherry picked from commit 446107f19d59ab95c918e566b5d8efdb8c0841c8) Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
-rw-r--r--clutter/x11/clutter-backend-x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clutter/x11/clutter-backend-x11.c b/clutter/x11/clutter-backend-x11.c
index b6825b856..ccf89bf4b 100644
--- a/clutter/x11/clutter-backend-x11.c
+++ b/clutter/x11/clutter-backend-x11.c
@@ -814,7 +814,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);