From 40f33a1d1b439f18626475bf1b8a6b7aa9a2b7da Mon Sep 17 00:00:00 2001 From: Maximilian Seidler Date: Fri, 3 Oct 2025 13:53:26 +0200 Subject: [PATCH] core: nvidia workaround destroy renderer before EGL --- src/core/hyprlock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hyprlock.cpp b/src/core/hyprlock.cpp index cd27e9e..87e33d1 100644 --- a/src/core/hyprlock.cpp +++ b/src/core/hyprlock.cpp @@ -312,8 +312,8 @@ void CHyprlock::run() { if (g_pEGL->m_isNvidia && m_vOutputs.empty()) { Debug::log(LOG, "NVIDIA Workaround: destroying rendering context to avoid crash on reconnect!"); - g_pEGL.reset(); g_pRenderer.reset(); + g_pEGL.reset(); g_pEGL = makeUnique(m_sWaylandState.display); g_pRenderer = makeUnique(); g_pRenderer->warpOpacity(1.0);