wayland: check if we have color representation manager first

before using it
This commit is contained in:
llyyr authored and Dudemanguy committed 2025-06-28 21:30:24 +00:00
1 parent ed8954e8cf
commit 591522c38f
1 file changed
+3
+3
View File
@@ -2813,6 +2813,9 @@ static void set_color_management(struct vo_wayland_state *wl)
static void set_color_representation(struct vo_wayland_state *wl)
{
#if HAVE_WAYLAND_PROTOCOLS_1_44
if (!wl->color_representation_manager)
return;
if (wl->color_representation_surface)
wp_color_representation_surface_v1_destroy(wl->color_representation_surface);