render: Drop rendering_with_buffer

This is always true now that we can only render with a buffer.
This commit is contained in:
Alexander Orzechowski 2023-11-29 15:28:00 -05:00
parent 7702a19739
commit d7ecdad4e0
2 changed files with 1 additions and 7 deletions

View file

@ -41,7 +41,6 @@ struct wlr_renderer {
const struct wlr_renderer_impl *impl;
bool rendering;
bool rendering_with_buffer;
};
/**

View file

@ -81,7 +81,6 @@ bool wlr_renderer_begin_with_buffer(struct wlr_renderer *r,
}
r->rendering = true;
r->rendering_with_buffer = true;
return true;
}
@ -93,11 +92,7 @@ void wlr_renderer_end(struct wlr_renderer *r) {
}
r->rendering = false;
if (r->rendering_with_buffer) {
renderer_bind_buffer(r, NULL);
r->rendering_with_buffer = false;
}
}
const uint32_t *wlr_renderer_get_shm_texture_formats(struct wlr_renderer *r,