mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
renderer: replace get_render_buffer_caps() with struct field
This commit is contained in:
parent
0686666cf5
commit
ebef710746
9 changed files with 13 additions and 34 deletions
|
|
@ -18,7 +18,7 @@ bool wlr_output_init_render(struct wlr_output *output,
|
|||
assert(allocator != NULL && renderer != NULL);
|
||||
|
||||
uint32_t backend_caps = backend_get_buffer_caps(output->backend);
|
||||
uint32_t renderer_caps = renderer_get_render_buffer_caps(renderer);
|
||||
uint32_t renderer_caps = renderer->render_buffer_caps;
|
||||
|
||||
if (!(backend_caps & allocator->buffer_caps)) {
|
||||
wlr_log(WLR_ERROR, "output backend and allocator buffer capabilities "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue