render/pixman: fix texture_is_opaque()

A texture is opaque when it does *not* have alpha.

Fixes https://github.com/swaywm/wlroots/issues/2907
This commit is contained in:
Vyivel 2021-07-09 09:19:24 +03:00 committed by Simon Ser
parent c1b27cc499
commit a362d21d6b
1 changed files with 1 additions and 1 deletions

View File

@ -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) {