From 45d3fbb8d8409b2def531a9315916606165875cf Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 4 Dec 2023 01:44:06 +0000 Subject: opengl: free window framebuffers in ~dtor ref #4036 --- src/Compositor.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index a12fabf1..3020b96d 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1395,14 +1395,11 @@ void CCompositor::cleanupFadingOut(const int& monid) { if (valid && !w->m_bReadyToDelete) continue; - std::erase_if(g_pHyprOpenGL->m_mWindowFramebuffers, [&](const auto& other) { return other.first == w; }); w->m_bFadingOut = false; removeWindowFromVectorSafe(w); std::erase(m_vWindowsFadingOut, w); Debug::log(LOG, "Cleanup: destroyed a window"); - - glFlush(); // to free mem NOW. return; } } -- cgit v1.2.3