mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
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
This commit is contained in:
parent
9584b23958
commit
8fc8a73580
@ -334,7 +334,8 @@ clutter_backend_gdk_get_display (ClutterBackend *backend,
|
|||||||
gboolean has_rgba_visual;
|
gboolean has_rgba_visual;
|
||||||
gboolean res;
|
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",
|
CLUTTER_NOTE (BACKEND, "Alpha on Cogl swap chain: %s",
|
||||||
has_rgba_visual ? "enabled" : "disabled");
|
has_rgba_visual ? "enabled" : "disabled");
|
||||||
|
Loading…
Reference in New Issue
Block a user