Skip to content

Commit 7482608

Browse files
llyyrDudemanguy
authored andcommitted
wayland: fix condition for setting image description
We need both a color surface and parametric support to attempt to apply image description, not either one. Fixes: 0a32f98 ("wayland: move initial color management setup earlier in the init")
1 parent 0a32f98 commit 7482608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

video/out/wayland_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3442,7 +3442,7 @@ static void seat_create_text_input(struct vo_wayland_seat *seat)
34423442
static void set_color_management(struct vo_wayland_state *wl)
34433443
{
34443444
#if HAVE_WAYLAND_PROTOCOLS_1_41
3445-
if (!wl->color_surface && !wl->supports_parametric)
3445+
if (!wl->color_surface || !wl->supports_parametric)
34463446
return;
34473447

34483448
struct pl_color_space color = wl->target_params.color;

0 commit comments

Comments
 (0)