opengl: clear layer fade fbs in ~dtor

This commit is contained in:
Vaxry
2023-12-04 02:08:34 +00:00
parent 45d3fbb8d8
commit 5d100bdcbb
3 changed files with 6 additions and 3 deletions

View File

@@ -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;