From db9d277614aa8fb84871cd01f2233ecd6e4f5ef2 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 29 Nov 2022 10:19:10 +0100 Subject: render/vulkan: make vulkan_format_props_find_modifier() return value const --- render/vulkan/texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render/vulkan/texture.c') diff --git a/render/vulkan/texture.c b/render/vulkan/texture.c index 131e03ba..0c066830 100644 --- a/render/vulkan/texture.c +++ b/render/vulkan/texture.c @@ -451,7 +451,7 @@ VkImage vulkan_import_dmabuf(struct wlr_vk_renderer *renderer, uint32_t plane_count = attribs->n_planes; assert(plane_count < WLR_DMABUF_MAX_PLANES); - struct wlr_vk_format_modifier_props *mod = + const struct wlr_vk_format_modifier_props *mod = vulkan_format_props_find_modifier(fmt, attribs->modifier, for_render); if (!mod) { wlr_log(WLR_ERROR, "Format %"PRIx32" (%.4s) can't be used with modifier " -- cgit v1.2.3