summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2023-12-04 01:44:06 +0000
committerVaxry <vaxry@vaxry.net>2023-12-04 01:44:16 +0000
commit45d3fbb8d8409b2def531a9315916606165875cf (patch)
treea776851afaa40df47cb41a8092f3efebe7e8552c /src/Compositor.cpp
parent9a9528d09375e6017088af354799ac381b939c1f (diff)
opengl: free window framebuffers in ~dtor
ref #4036
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp3
1 files changed, 0 insertions, 3 deletions
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;
}
}