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;
}
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!");

View File

@ -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"