render: constify struct wlr_buffer_pass_options

Let's not allow renderer implementations to mutate the passed in
options.
This commit is contained in:
Simon Ser 2023-07-10 11:31:01 +02:00
parent fe06e5f49a
commit b7dca21c2b
6 changed files with 6 additions and 6 deletions

View file

@ -177,7 +177,7 @@ struct wlr_buffer_pass_options {
* render pass.
*/
struct wlr_render_pass *wlr_renderer_begin_buffer_pass(struct wlr_renderer *renderer,
struct wlr_buffer *buffer, struct wlr_buffer_pass_options *options);
struct wlr_buffer *buffer, const struct wlr_buffer_pass_options *options);
/**
* Submit the render pass.