diff options
author | Vyivel <vyivel@posteo.net> | 2021-07-09 09:19:24 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-07-09 08:23:45 +0200 |
commit | a362d21d6b2191ce0101657629ae01841189cae5 (patch) | |
tree | 85661873b2310b4a083bac5841f0ff51749b097e | |
parent | c1b27cc499d06c0aa3d02228dd6e2905e08e2436 (diff) |
render/pixman: fix texture_is_opaque()
A texture is opaque when it does *not* have alpha.
Fixes https://github.com/swaywm/wlroots/issues/2907
-rw-r--r-- | render/pixman/renderer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |