mirror of https://github.com/hyprwm/Hyprland
fix vram leak
This commit is contained in:
parent
53debc7e30
commit
4b2a69c571
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue