mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
render: introduce wlr_renderer_get_drm_fd
This commit is contained in:
parent
c8d95acc37
commit
eb8360bda3
5 changed files with 34 additions and 0 deletions
|
|
@ -269,3 +269,10 @@ struct wlr_renderer *wlr_renderer_autocreate(struct wlr_egl *egl,
|
|||
|
||||
return renderer;
|
||||
}
|
||||
|
||||
int wlr_renderer_get_drm_fd(struct wlr_renderer *r) {
|
||||
if (!r->impl->get_drm_fd) {
|
||||
return -1;
|
||||
}
|
||||
return r->impl->get_drm_fd(r);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue