opengl: free window framebuffers in ~dtor

ref #4036
This commit is contained in:
Vaxry
2023-12-04 01:44:06 +00:00
parent 9a9528d093
commit 45d3fbb8d8
4 changed files with 5 additions and 5 deletions

View File

@@ -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;
}
}