switch renderer to GLES

This commit is contained in:
vaxerski 2022-03-24 16:07:01 +01:00
parent 14d387ea14
commit dcd8b49c43
2 changed files with 4 additions and 2 deletions

View file

@ -23,7 +23,7 @@ CCompositor::CCompositor() {
return; return;
} }
m_sWLRRenderer = wlr_renderer_autocreate(m_sWLRBackend); m_sWLRRenderer = wlr_gles2_renderer_create_with_drm_fd(DRMFD);
if (!m_sWLRRenderer) { if (!m_sWLRRenderer) {
Debug::log(CRIT, "m_sWLRRenderer was NULL!"); Debug::log(CRIT, "m_sWLRRenderer was NULL!");

View file

@ -74,12 +74,14 @@ extern "C" {
#include <wlr/util/region.h> #include <wlr/util/region.h>
#include <xkbcommon/xkbcommon.h> #include <xkbcommon/xkbcommon.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include <wlr/render/gles2.h>
} }
#undef class #undef class
#undef namespace #undef namespace
#undef static #undef static
#endif #endif
#include <GLES3/gl32.h>
#include "helpers/Vector2D.hpp" #include "helpers/Vector2D.hpp"