This commit is contained in:
vaxerski 2022-03-24 17:17:08 +01:00
parent dcd8b49c43
commit 116ab9e56c
4 changed files with 13 additions and 0 deletions

View file

@ -37,6 +37,9 @@ target_link_libraries(Hyprland PkgConfig::deps)
target_link_libraries(Hyprland
wlroots
pixman-1
OpenGL
GLESv2
pthread
${CMAKE_THREAD_LIBS_INIT}
)

View file

@ -20,6 +20,7 @@ CCompositor::CCompositor() {
const auto DRMFD = wlr_backend_get_drm_fd(m_sWLRBackend);
if (DRMFD < 0) {
Debug::log(CRIT, "Couldn't query the DRM FD!");
RIP("DRMFD NULL!");
return;
}
@ -41,6 +42,13 @@ CCompositor::CCompositor() {
return;
}
m_sWLREGL = wlr_gles2_renderer_get_egl(m_sWLRRenderer);
if (!m_sWLREGL) {
Debug::log(CRIT, "m_sWLREGL was NULL!");
RIP("m_sWLREGL NULL!");
return;
}
m_sWLRCompositor = wlr_compositor_create(m_sWLDisplay, m_sWLRRenderer);
m_sWLRSubCompositor = wlr_subcompositor_create(m_sWLDisplay);

View file

@ -45,6 +45,7 @@ public:
wlr_scene* m_sWLRScene;
wlr_input_inhibit_manager* m_sWLRInhibitMgr;
wlr_keyboard_shortcuts_inhibit_manager_v1* m_sWLRKbShInhibitMgr;
wlr_egl* m_sWLREGL;
// ------------------------------------------------- //

View file

@ -75,6 +75,7 @@ extern "C" {
#include <xkbcommon/xkbcommon.h>
#include <X11/Xproto.h>
#include <wlr/render/gles2.h>
#include <wlr/render/wlr_texture.h>
}
#undef class