fix vram leak

This commit is contained in:
Vaxry 2024-04-27 12:21:28 +01:00
parent 53debc7e30
commit 4b2a69c571
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ CWindow::~CWindow() {
return;
g_pHyprRenderer->makeEGLCurrent();
std::erase_if(g_pHyprOpenGL->m_mWindowFramebuffers, [&](const auto& other) { return other.first.lock().get() == this; });
std::erase_if(g_pHyprOpenGL->m_mWindowFramebuffers, [&](const auto& other) { return !other.first.lock() || other.first.lock().get() == this; });
}
SWindowDecorationExtents CWindow::getFullWindowExtents() {