aboutsummaryrefslogtreecommitdiff
path: root/render/vulkan/texture.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-11-29 10:19:10 +0100
committerSimon Zeni <simon@bl4ckb0ne.ca>2022-12-02 15:18:59 +0000
commitdb9d277614aa8fb84871cd01f2233ecd6e4f5ef2 (patch)
tree3a5abe75d03dc70403d74792b628cc4aad715602 /render/vulkan/texture.c
parentb4ad4671dc9a2136bebff279c4b15879dad9b795 (diff)
render/vulkan: make vulkan_format_props_find_modifier() return value const
Diffstat (limited to 'render/vulkan/texture.c')
-rw-r--r--render/vulkan/texture.c2
1 files changed, 1 insertions, 1 deletions
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 "