From 45d3fbb8d8409b2def531a9315916606165875cf Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 4 Dec 2023 01:44:06 +0000 Subject: opengl: free window framebuffers in ~dtor ref #4036 --- src/Window.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Window.cpp') diff --git a/src/Window.cpp b/src/Window.cpp index 7569c869..bcb819a8 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -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() { -- cgit v1.2.3