diff options
| author | Vaxry <vaxry@vaxry.net> | 2023-12-04 02:08:34 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2023-12-04 02:08:34 +0000 |
| commit | 5d100bdcbbd87bac74935eae6b7d7aed25620323 (patch) | |
| tree | ac9f529eac637842bcd6be165cf81775dd890666 /src/helpers | |
| parent | 45d3fbb8d8409b2def531a9315916606165875cf (diff) | |
opengl: clear layer fade fbs in ~dtor
Diffstat (limited to 'src/helpers')
| -rw-r--r-- | src/helpers/WLClasses.cpp | 5 | ||||
| -rw-r--r-- | src/helpers/WLClasses.hpp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/helpers/WLClasses.cpp b/src/helpers/WLClasses.cpp index 6923d6a5..9a326614 100644 --- a/src/helpers/WLClasses.cpp +++ b/src/helpers/WLClasses.cpp @@ -8,6 +8,11 @@ SLayerSurface::SLayerSurface() { alpha.registerVar(); } +SLayerSurface::~SLayerSurface() { + g_pHyprRenderer->makeEGLCurrent(); + std::erase_if(g_pHyprOpenGL->m_mLayerFramebuffers, [&](const auto& other) { return other.first == this; }); +} + void SLayerSurface::applyRules() { noAnimations = false; forceBlur = false; diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp index f7efbe98..d381fa0d 100644 --- a/src/helpers/WLClasses.hpp +++ b/src/helpers/WLClasses.hpp @@ -16,6 +16,7 @@ struct SLayerRule { struct SLayerSurface { SLayerSurface(); + ~SLayerSurface(); void applyRules(); |
