mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-15 22:05:31 -05:00
render: constify struct wlr_buffer_pass_options
Let's not allow renderer implementations to mutate the passed in options.
This commit is contained in:
parent
fe06e5f49a
commit
b7dca21c2b
6 changed files with 6 additions and 6 deletions
|
|
@ -415,7 +415,7 @@ int wlr_renderer_get_drm_fd(struct wlr_renderer *r) {
|
|||
}
|
||||
|
||||
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) {
|
||||
if (!renderer->impl->begin_buffer_pass) {
|
||||
return begin_legacy_buffer_render_pass(renderer, buffer);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue