renderer: replace get_render_buffer_caps() with struct field

This commit is contained in:
Simon Ser 2024-03-21 12:28:10 +01:00
parent 0686666cf5
commit ebef710746
9 changed files with 13 additions and 34 deletions

View file

@ -94,7 +94,7 @@ static int reopen_drm_node(int drm_fd, bool allow_render_node) {
struct wlr_allocator *allocator_autocreate_with_drm_fd(
uint32_t backend_caps, struct wlr_renderer *renderer,
int drm_fd) {
uint32_t renderer_caps = renderer_get_render_buffer_caps(renderer);
uint32_t renderer_caps = renderer->render_buffer_caps;
struct wlr_allocator *alloc = NULL;