mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 06:05:58 +01:00
renderer: Don't pass NULL options
This commit is contained in:
parent
3dc646ea88
commit
e0424b24f6
1 changed files with 6 additions and 0 deletions
|
@ -418,6 +418,12 @@ struct wlr_render_pass *wlr_renderer_begin_buffer_pass(struct wlr_renderer *rend
|
||||||
if (!renderer->impl->begin_buffer_pass) {
|
if (!renderer->impl->begin_buffer_pass) {
|
||||||
return begin_legacy_buffer_render_pass(renderer, buffer);
|
return begin_legacy_buffer_render_pass(renderer, buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct wlr_buffer_pass_options default_options = {0};
|
||||||
|
if (!options) {
|
||||||
|
options = &default_options;
|
||||||
|
}
|
||||||
|
|
||||||
return renderer->impl->begin_buffer_pass(renderer, buffer, options);
|
return renderer->impl->begin_buffer_pass(renderer, buffer, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue