From c1ef361e02e4c4a52fbc5dbd9e67b79e0afab4f3 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 23 Feb 2024 00:02:48 +0000 Subject: [PATCH] renderer: fix logs --- src/render/Renderer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index dcfed4f9..499641c9 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -2477,13 +2477,13 @@ bool CHyprRenderer::beginRender(CMonitor* pMonitor, CRegion& damage, eRenderMode if (!buffer) { if (!wlr_output_configure_primary_swapchain(pMonitor->output, pMonitor->state.wlr(), &pMonitor->output->swapchain)) { - Debug::log(ERR, "Failed to configure primary swapchain for {}", pMonitor); + Debug::log(ERR, "Failed to configure primary swapchain for {}", pMonitor->szName); return false; } m_pCurrentWlrBuffer = wlr_swapchain_acquire(pMonitor->output->swapchain, nullptr); if (!m_pCurrentWlrBuffer) { - Debug::log(ERR, "Failed to acquire swapchain buffer for {}", pMonitor); + Debug::log(ERR, "Failed to acquire swapchain buffer for {}", pMonitor->szName); return false; } } else @@ -2492,7 +2492,7 @@ bool CHyprRenderer::beginRender(CMonitor* pMonitor, CRegion& damage, eRenderMode try { m_pCurrentRenderbuffer = getOrCreateRenderbuffer(m_pCurrentWlrBuffer, pMonitor->drmFormat); } catch (std::exception& e) { - Debug::log(ERR, "getOrCreateRenderbuffer failed for {}", pMonitor); + Debug::log(ERR, "getOrCreateRenderbuffer failed for {}", pMonitor->szName); wlr_buffer_unlock(m_pCurrentWlrBuffer); return false; }