summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-24 16:07:01 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-24 16:07:01 +0100
commitdcd8b49c4308d0af8c03e2a32f3753357208dc48 (patch)
treeed181f477599ea97cf42e3b8ca0d395fd58473e6 /src
parent14d387ea14f0f41e1678ea4fa32af4a3af59744c (diff)
switch renderer to GLES
Diffstat (limited to 'src')
-rw-r--r--src/Compositor.cpp2
-rw-r--r--src/includes.hpp4
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 <wlr/util/region.h>
#include <xkbcommon/xkbcommon.h>
#include <X11/Xproto.h>
+#include <wlr/render/gles2.h>
}
#undef class
#undef namespace
#undef static
-
#endif
+#include <GLES3/gl32.h>
+
#include "helpers/Vector2D.hpp"