From 966f20d305345b3042dc1d37a1dd8833f3a4783b Mon Sep 17 00:00:00 2001 From: UjinT34 <41110182+UjinT34@users.noreply.github.com> Date: Sat, 7 Mar 2026 16:13:34 +0300 Subject: renderer: refactor resources and flags (#13471) --- src/Compositor.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index b0fc1545..400c595d 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -32,6 +32,7 @@ #include #include "debug/HyprCtl.hpp" #include "debug/crash/CrashReporter.hpp" +#include "render/ShaderLoader.hpp" #ifdef USES_SYSTEMD #include // for SdNotify #endif @@ -587,6 +588,7 @@ void CCompositor::cleanup() { g_pProtocolManager.reset(); g_pHyprRenderer.reset(); g_pHyprOpenGL.reset(); + Render::g_pShaderLoader.reset(); g_pConfigManager.reset(); g_layoutManager.reset(); g_pHyprError.reset(); @@ -1323,8 +1325,11 @@ void CCompositor::cleanupFadingOut(const MONITORID& monid) { continue; // mark blur for recalc - if (ls->m_layer == ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND || ls->m_layer == ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM) - g_pHyprOpenGL->markBlurDirtyForMonitor(getMonitorFromID(monid)); + if (ls->m_layer == ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND || ls->m_layer == ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM) { + auto mon = getMonitorFromID(monid); + if (mon) + mon->m_blurFBDirty = true; + } if (ls->m_fadingOut && ls->m_readyToDelete && ls->isFadedOut()) { for (auto const& m : m_monitors) { @@ -2513,8 +2518,8 @@ void CCompositor::performUserChecks() { g_pHyprNotificationOverlay->addNotification(I18n::i18nEngine()->localize(I18n::TXT_KEY_NOTIF_NO_GUIUTILS), CHyprColor{}, 15000, ICON_WARNING); } - if (g_pHyprOpenGL->m_failedAssetsNo > 0) { - g_pHyprNotificationOverlay->addNotification(I18n::i18nEngine()->localize(I18n::TXT_KEY_NOTIF_FAILED_ASSETS, {{"count", std::to_string(g_pHyprOpenGL->m_failedAssetsNo)}}), + if (g_pHyprRenderer->m_failedAssetsNo > 0) { + g_pHyprNotificationOverlay->addNotification(I18n::i18nEngine()->localize(I18n::TXT_KEY_NOTIF_FAILED_ASSETS, {{"count", std::to_string(g_pHyprRenderer->m_failedAssetsNo)}}), CHyprColor{1.0, 0.1, 0.1, 1.0}, 15000, ICON_ERROR); } -- cgit v1.2.3