From b7dca21c2b8ac707e8d3e2abe68f787d524a202d Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 10 Jul 2023 11:31:01 +0200 Subject: render: constify struct wlr_buffer_pass_options Let's not allow renderer implementations to mutate the passed in options. --- include/wlr/render/interface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/wlr/render/interface.h') diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h index c352efe1..bdb5bbb8 100644 --- a/include/wlr/render/interface.h +++ b/include/wlr/render/interface.h @@ -49,7 +49,7 @@ struct wlr_renderer_impl { struct wlr_texture *(*texture_from_buffer)(struct wlr_renderer *renderer, struct wlr_buffer *buffer); struct wlr_render_pass *(*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); struct wlr_render_timer *(*render_timer_create)(struct wlr_renderer *renderer); }; -- cgit v1.2.3