mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
allocator: remove backend parameter in allocator_autocreate_with_drm_fd
Since we only use the backend capabilities here we can simply pass them in directly. This allows other locations to create an allocator even if they don't have a backend. They can simply specify the caps they want instead.
This commit is contained in:
parent
a8aeadeab2
commit
d368028bd5
3 changed files with 8 additions and 5 deletions
|
|
@ -4,6 +4,6 @@
|
|||
#include <wlr/render/allocator.h>
|
||||
|
||||
struct wlr_allocator *allocator_autocreate_with_drm_fd(
|
||||
struct wlr_backend *backend, struct wlr_renderer *renderer, int drm_fd);
|
||||
uint32_t backend_caps, struct wlr_renderer *renderer, int drm_fd);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue