render: take event loop as input when creating renderer

Some renderers will need access to the event loop for async GPU
uploads.
This commit is contained in:
Simon Ser 2023-10-11 11:27:59 +02:00
parent 3b3640dda4
commit 7abb227617
3 changed files with 8 additions and 7 deletions

View file

@ -6,7 +6,7 @@
/**
* Automatically select and create a renderer suitable for the DRM FD.
*/
struct wlr_renderer *renderer_autocreate_with_drm_fd(int drm_fd);
struct wlr_renderer *renderer_autocreate_with_drm_fd(int drm_fd, struct wl_event_loop *loop);
/**
* Get the supported render formats. Buffers allocated with a format from this
* list may be attached via wlr_renderer_begin_with_buffer.