use wlr_renderer_get_texture_formats (wlroots!4644)

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4644
This commit is contained in:
Leonardo Hernández Hernández 2024-04-21 15:53:59 -06:00
parent 72e2ce8b00
commit bb73481662
No known key found for this signature in database
GPG key ID: E538897EE11B9624

2
dwl.c
View file

@ -2341,7 +2341,7 @@ setup(void)
* with wlr_scene. */ * with wlr_scene. */
wlr_renderer_init_wl_shm(drw, dpy); wlr_renderer_init_wl_shm(drw, dpy);
if (wlr_renderer_get_dmabuf_texture_formats(drw)) { if (wlr_renderer_get_texture_formats(drw, WLR_BUFFER_CAP_DMABUF)) {
wlr_drm_create(dpy, drw); wlr_drm_create(dpy, drw);
wlr_scene_set_linux_dmabuf_v1(scene, wlr_scene_set_linux_dmabuf_v1(scene,
wlr_linux_dmabuf_v1_create_with_renderer(dpy, 4, drw)); wlr_linux_dmabuf_v1_create_with_renderer(dpy, 4, drw));