aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-06-06 02:13:51 -0400
committerAlexander Orzechowski <alex@ozal.ski>2023-06-06 02:14:47 -0400
commite0424b24f670de0552ca23cb3917808b780069c7 (patch)
treebb3f4b3b655cc02a51babb38e79e480cadfd7215
parent3dc646ea889084cd7aa980f38124b5df548cf10d (diff)
renderer: Don't pass NULL options
-rw-r--r--render/wlr_renderer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c
index 22c1f8d2..e8da28fd 100644
--- a/render/wlr_renderer.c
+++ b/render/wlr_renderer.c
@@ -418,6 +418,12 @@ struct wlr_render_pass *wlr_renderer_begin_buffer_pass(struct wlr_renderer *rend
if (!renderer->impl->begin_buffer_pass) {
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);
}