render/pixman: fix texture_is_opaque()

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

Fixes https://github.com/swaywm/wlroots/issues/2907
master
Vyivel 4 years ago committed by Simon Ser
parent c1b27cc499
commit a362d21d6b

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

Loading…
Cancel
Save