From dcd8b49c4308d0af8c03e2a32f3753357208dc48 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 24 Mar 2022 16:07:01 +0100 Subject: [PATCH] switch renderer to GLES --- src/Compositor.cpp | 2 +- src/includes.hpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index bdc35f7f..4826d502 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -23,7 +23,7 @@ CCompositor::CCompositor() { return; } - m_sWLRRenderer = wlr_renderer_autocreate(m_sWLRBackend); + m_sWLRRenderer = wlr_gles2_renderer_create_with_drm_fd(DRMFD); if (!m_sWLRRenderer) { Debug::log(CRIT, "m_sWLRRenderer was NULL!"); diff --git a/src/includes.hpp b/src/includes.hpp index 051d6daa..8d52078b 100644 --- a/src/includes.hpp +++ b/src/includes.hpp @@ -74,12 +74,14 @@ extern "C" { #include #include #include +#include } #undef class #undef namespace #undef static - #endif +#include + #include "helpers/Vector2D.hpp"