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

@@ -21,6 +21,9 @@ CWindow::~CWindow() {
g_pCompositor->m_pLastFocus = nullptr;
g_pCompositor->m_pLastWindow = nullptr;
}
g_pHyprRenderer->makeEGLCurrent();
std::erase_if(g_pHyprOpenGL->m_mWindowFramebuffers, [&](const auto& other) { return other.first == this; });
}
SWindowDecorationExtents CWindow::getFullWindowExtents() {