Commit 8fc8a735 authored by Emmanuele Bassi's avatar Emmanuele Bassi 👣
Browse files

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:
parent 9584b239
......@@ -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");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment