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. --- render/gles2/renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render/gles2') diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index 2b6c04b9..9fe934f7 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -552,7 +552,7 @@ static void gles2_destroy(struct wlr_renderer *wlr_renderer) { } static struct wlr_render_pass *gles2_begin_buffer_pass(struct wlr_renderer *wlr_renderer, - struct wlr_buffer *wlr_buffer, struct wlr_buffer_pass_options *options) { + struct wlr_buffer *wlr_buffer, const struct wlr_buffer_pass_options *options) { struct wlr_gles2_renderer *renderer = gles2_get_renderer(wlr_renderer); if (!wlr_egl_make_current(renderer->egl)) { return NULL; -- cgit v1.2.3