render: dogfood the clear buffer option

This commit is contained in:
Julia Tatz 2023-12-12 17:59:22 -05:00 committed by Julia Tatz
parent 534266b3f8
commit 4cef4e0e56
10 changed files with 35 additions and 49 deletions

View file

@ -96,11 +96,9 @@ static void output_handle_frame(struct wl_listener *listener, void *data) {
wlr_output_effective_resolution(output->wlr_output, &width, &height);
struct wlr_render_pass *pass = wlr_output_begin_render_pass(output->wlr_output, &output_state,
NULL, NULL);
wlr_render_pass_add_rect(pass, &(struct wlr_render_rect_options){
.box = { .width = width, .height = height },
.color = { 0.3, 0.3, 0.3, 1 },
NULL, &(struct wlr_buffer_pass_options){
.clear_buffer = true,
.clear_color = { 0.3, 0.3, 0.3, 1 },
});
size_t i = 0;