mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
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:
parent
c1b27cc499
commit
a362d21d6b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue