mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-11-30 09:48:05 +03:00
EGL
This commit is contained in:
parent
dcd8b49c43
commit
116ab9e56c
@ -37,6 +37,9 @@ target_link_libraries(Hyprland PkgConfig::deps)
|
||||
target_link_libraries(Hyprland
|
||||
wlroots
|
||||
pixman-1
|
||||
OpenGL
|
||||
GLESv2
|
||||
pthread
|
||||
${CMAKE_THREAD_LIBS_INIT}
|
||||
)
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
// ------------------------------------------------- //
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user