linux-dmabuf-v1: add version arg to create()

To be able to add support for newer versions without breaking
changes.
This commit is contained in:
Simon Ser 2022-11-24 10:07:19 +01:00
parent 444d94ef89
commit c99c60090c
3 changed files with 7 additions and 6 deletions

View file

@ -232,7 +232,7 @@ bool wlr_renderer_init_wl_display(struct wlr_renderer *r,
wlr_log(WLR_INFO, "Cannot get renderer DRM FD, disabling wl_drm");
}
if (wlr_linux_dmabuf_v1_create_with_renderer(wl_display, r) == NULL) {
if (wlr_linux_dmabuf_v1_create_with_renderer(wl_display, 4, r) == NULL) {
return false;
}
}