From 2f0815838d921f3fc4a22cb45985fd7d35db5d95 Mon Sep 17 00:00:00 2001 From: emersion Date: Sat, 1 Sep 2018 19:27:18 +0200 Subject: Init dmabuf global in renderer --- render/wlr_renderer.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'render') diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c index 6c2b9fbb..31bf2b18 100644 --- a/render/wlr_renderer.c +++ b/render/wlr_renderer.c @@ -1,10 +1,11 @@ #include #include #include +#include #include #include +#include #include -#include #include #include "util/signal.h" @@ -176,6 +177,10 @@ void wlr_renderer_init_wl_display(struct wlr_renderer *r, } } + if (r->impl->texture_from_dmabuf) { + wlr_linux_dmabuf_v1_create(wl_display, r); + } + if (r->impl->init_wl_display) { r->impl->init_wl_display(r, wl_display); } -- cgit v1.2.3