diff options
author | Simon Ser <contact@emersion.fr> | 2023-07-10 11:31:01 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-07-11 18:19:03 +0000 |
commit | b7dca21c2b8ac707e8d3e2abe68f787d524a202d (patch) | |
tree | 5ed23b856021b2c76c8354d08365146ca340d50b /render/vulkan | |
parent | fe06e5f49a12174ceeb5e307bf5c3d7f623177d5 (diff) |
render: constify struct wlr_buffer_pass_options
Let's not allow renderer implementations to mutate the passed in
options.
Diffstat (limited to 'render/vulkan')
-rw-r--r-- | render/vulkan/renderer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/vulkan/renderer.c b/render/vulkan/renderer.c index 4419cf2c..736c9e96 100644 --- a/render/vulkan/renderer.c +++ b/render/vulkan/renderer.c @@ -1922,7 +1922,7 @@ static uint32_t vulkan_get_render_buffer_caps(struct wlr_renderer *wlr_renderer) } static struct wlr_render_pass *vulkan_begin_buffer_pass(struct wlr_renderer *wlr_renderer, - struct wlr_buffer *buffer, struct wlr_buffer_pass_options *options) { + struct wlr_buffer *buffer, const struct wlr_buffer_pass_options *options) { struct wlr_vk_renderer *renderer = vulkan_get_renderer(wlr_renderer); struct wlr_vk_render_buffer *render_buffer = get_render_buffer(renderer, buffer); |