diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-05 14:42:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-05 14:42:57 +0200 |
| commit | 2313de589ecfb6664fea79c1e2f7aa991cf477cb (patch) | |
| tree | e7bd36a4f99ea53efdbddca301a66939dde9cd98 /src/Compositor.cpp | |
| parent | 281b4f83a0f3a7be15136803c81a488d7a768a95 (diff) | |
| parent | bd5c056a601842c41816448b82cf5367e21ea0ad (diff) | |
Merge pull request #14 from vaxerski/custom-renderer-wlr
Added a custom wlr renderer
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 5d9cfd54..0bf2ffcf 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -17,14 +17,14 @@ CCompositor::CCompositor() { return; } - const auto DRMFD = wlr_backend_get_drm_fd(m_sWLRBackend); - if (DRMFD < 0) { + m_iDRMFD = wlr_backend_get_drm_fd(m_sWLRBackend); + if (m_iDRMFD < 0) { Debug::log(CRIT, "Couldn't query the DRM FD!"); RIP("DRMFD NULL!"); return; } - m_sWLRRenderer = wlr_gles2_renderer_create_with_drm_fd(DRMFD); + m_sWLRRenderer = wlr_gles2_renderer_create_with_drm_fd(m_iDRMFD); if (!m_sWLRRenderer) { Debug::log(CRIT, "m_sWLRRenderer was NULL!"); @@ -133,6 +133,9 @@ void CCompositor::startCompositor() { Debug::log(LOG, "Creating the InputManager!"); g_pInputManager = std::make_unique<CInputManager>(); + Debug::log(LOG, "Creating the CHyprOpenGLImpl!"); + g_pHyprOpenGL = std::make_unique<CHyprOpenGLImpl>(); + Debug::log(LOG, "Creating the HyprRenderer!"); g_pHyprRenderer = std::make_unique<CHyprRenderer>(); |
