wayland: check if we have color representation manager first
before using it
This commit is contained in:
1 parent
ed8954e8cf
commit
591522c38f
1 file changed
+3
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user