render/pixman: fix texture_is_opaque()
A texture is opaque when it does *not* have alpha.
Fixes
@@ -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) {
