From a362d21d6b2191ce0101657629ae01841189cae5 Mon Sep 17 00:00:00 2001 From: Vyivel Date: Fri, 9 Jul 2021 09:19:24 +0300 Subject: render/pixman: fix texture_is_opaque() A texture is opaque when it does *not* have alpha. Fixes https://github.com/swaywm/wlroots/issues/2907 --- render/pixman/renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render') diff --git a/render/pixman/renderer.c b/render/pixman/renderer.c index ff9c0f3a..e153cf00 100644 --- a/render/pixman/renderer.c +++ b/render/pixman/renderer.c @@ -48,7 +48,7 @@ static struct wlr_pixman_texture *get_texture( static bool texture_is_opaque(struct wlr_texture *wlr_texture) { struct wlr_pixman_texture *texture = get_texture(wlr_texture); - return texture->format_info->has_alpha; + return !texture->format_info->has_alpha; } static void texture_destroy(struct wlr_texture *wlr_texture) { -- cgit v1.2.3