diff options
| author | Vaxry <vaxry@vaxry.net> | 2023-12-06 14:46:18 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2023-12-06 14:46:29 +0000 |
| commit | 03c6f4506ab06d2920c59b3c64f45cb4eec8c97a (patch) | |
| tree | 72aff88f74f89729f17e902e01eb488cb1eb1f0c /src/Window.cpp | |
| parent | 13b4c6de869b782ae18a0e8ac7c590e8000cc1c2 (diff) | |
internal: various improvements to avoid crashes on exit
Diffstat (limited to 'src/Window.cpp')
| -rw-r--r-- | src/Window.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Window.cpp b/src/Window.cpp index bcb819a8..789882de 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -22,6 +22,9 @@ CWindow::~CWindow() { g_pCompositor->m_pLastWindow = nullptr; } + if (!g_pHyprOpenGL) + return; + g_pHyprRenderer->makeEGLCurrent(); std::erase_if(g_pHyprOpenGL->m_mWindowFramebuffers, [&](const auto& other) { return other.first == this; }); } |
