From cfa6c01df088b93d5ae6042e56740c437516fca5 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 28 Aug 2022 12:32:26 +0200 Subject: [PATCH] remove double drm and dmabuf creation --- src/Compositor.cpp | 5 ----- src/Compositor.hpp | 1 - 2 files changed, 6 deletions(-) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 5259ed374..790ef592f 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -75,11 +75,6 @@ CCompositor::CCompositor() { wlr_renderer_init_wl_display(m_sWLRRenderer, m_sWLDisplay); - if (wlr_renderer_get_dmabuf_texture_formats(m_sWLRRenderer) != NULL) { - wlr_drm_create(m_sWLDisplay, m_sWLRRenderer); - m_sWLRDmabuf = wlr_linux_dmabuf_v1_create(m_sWLDisplay, m_sWLRRenderer); - } - m_sWLRAllocator = wlr_allocator_autocreate(m_sWLRBackend, m_sWLRRenderer); if (!m_sWLRAllocator) { diff --git a/src/Compositor.hpp b/src/Compositor.hpp index 45d108cf3..e3b4bbbc8 100644 --- a/src/Compositor.hpp +++ b/src/Compositor.hpp @@ -56,7 +56,6 @@ public: wlr_egl* m_sWLREGL; int m_iDRMFD; wlr_ext_workspace_manager_v1* m_sWLREXTWorkspaceMgr; - wlr_linux_dmabuf_v1* m_sWLRDmabuf; wlr_pointer_constraints_v1* m_sWLRPointerConstraints; wlr_relative_pointer_manager_v1* m_sWLRRelPointerMgr; wlr_server_decoration_manager* m_sWLRServerDecoMgr;