# Pastebin fdnkjm4I diff --git a/libweston/backend-rdp/rdp.c b/libweston/backend-rdp/rdp.c index c75693ef..1f31f4c5 100644 --- a/libweston/backend-rdp/rdp.c +++ b/libweston/backend-rdp/rdp.c @@ -47,6 +47,7 @@ #include "pixman-renderer.h" #include "renderer-gl/gl-renderer.h" #include "shared/weston-egl-ext.h" +#include "linux-dmabuf.h" /* These can be removed when we bump FreeRDP dependency past 3.0.0 in the future */ #ifndef KBD_PERSIAN @@ -1918,6 +1919,12 @@ rdp_backend_create(struct weston_compositor *compositor, compositor->capabilities |= WESTON_CAP_ARBITRARY_MODES; + if (compositor->renderer->import_dmabuf) { + if (linux_dmabuf_setup(compositor) < 0) + weston_log("Error: initializing dmabuf " + "support failed.\n"); + } + if (!config->env_socket) { b->listener = freerdp_listener_new(); b->listener->PeerAccepted = rdp_incoming_peer;