summaryrefslogtreecommitdiff
path: root/src/helpers/WLClasses.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2023-12-04 02:08:34 +0000
committerVaxry <vaxry@vaxry.net>2023-12-04 02:08:34 +0000
commit5d100bdcbbd87bac74935eae6b7d7aed25620323 (patch)
treeac9f529eac637842bcd6be165cf81775dd890666 /src/helpers/WLClasses.cpp
parent45d3fbb8d8409b2def531a9315916606165875cf (diff)
opengl: clear layer fade fbs in ~dtor
Diffstat (limited to 'src/helpers/WLClasses.cpp')
-rw-r--r--src/helpers/WLClasses.cpp5
1 files changed, 5 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;