summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2024-04-21 15:53:59 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2024-04-21 15:53:59 -0600
commitbb734816627b3bad7ea231bfb454777a1c5177ed (patch)
tree12ec3383c91fe1cfd45d27ac82c79ae00298f945
parent72e2ce8b00995d5925786043dd2910c27722c375 (diff)
use wlr_renderer_get_texture_formats (wlroots!4644)
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4644
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 1ebc3d4..589b187 100644
--- a/dwl.c
+++ b/dwl.c
@@ -2341,7 +2341,7 @@ setup(void)
* with wlr_scene. */
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_scene_set_linux_dmabuf_v1(scene,
wlr_linux_dmabuf_v1_create_with_renderer(dpy, 4, drw));