[clutter/clutter-1.22] gdk: Use RGBA visual if there is one
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.22] gdk: Use RGBA visual if there is one
- Date: Thu, 7 May 2015 12:30:12 +0000 (UTC)
commit 8cf629d4c1d2f4020bb3d9c3d70e4d26959052bb
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu May 7 13:26:37 2015 +0100
gdk: Use RGBA visual if there is one
The condition check for the has_rgba_visual flag is reversed, and thus
we relied on drivers returning an ARGB visual first by default.
Referenced by: https://bugzilla.redhat.com/show_bug.cgi?id=1206960
(cherry picked from commit 8fc8a73580ceb810ee7f34eae0df26fac4cb277d)
Signed-off-by: Emmanuele Bassi <ebassi gnome org>
clutter/gdk/clutter-backend-gdk.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/clutter/gdk/clutter-backend-gdk.c b/clutter/gdk/clutter-backend-gdk.c
index 5b88d32..b4f7f1c 100644
--- a/clutter/gdk/clutter-backend-gdk.c
+++ b/clutter/gdk/clutter-backend-gdk.c
@@ -334,7 +334,8 @@ clutter_backend_gdk_get_display (ClutterBackend *backend,
gboolean has_rgba_visual;
gboolean res;
- has_rgba_visual = gdk_screen_get_rgba_visual (backend_gdk->screen) == NULL;
+ /* We default to an RGBA visual if there is one */
+ has_rgba_visual = gdk_screen_get_rgba_visual (backend_gdk->screen) != NULL;
CLUTTER_NOTE (BACKEND, "Alpha on Cogl swap chain: %s",
has_rgba_visual ? "enabled" : "disabled");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]