From b25b06430ba82ebd1977ad75b6cb1b86dd07cb8b Mon Sep 17 00:00:00 2001 From: MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> Date: Sun, 24 Dec 2023 18:29:04 +0000 Subject: [PATCH] groupbar: add egl context to refreshGroupBarGradients() (#4238) * add egl context to refreshGroupBarGradients() modified: src/render/decorations/CHyprGroupBarDecoration.cpp * don't unsetEGL modified: src/render/decorations/CHyprGroupBarDecoration.cpp --- src/render/decorations/CHyprGroupBarDecoration.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/render/decorations/CHyprGroupBarDecoration.cpp b/src/render/decorations/CHyprGroupBarDecoration.cpp index ae1d76a7..8b4958bc 100644 --- a/src/render/decorations/CHyprGroupBarDecoration.cpp +++ b/src/render/decorations/CHyprGroupBarDecoration.cpp @@ -288,6 +288,8 @@ void refreshGroupBarGradients() { static auto* const PGROUPCOLACTIVELOCKED = &g_pConfigManager->getConfigValuePtr("group:groupbar:col.locked_active")->data; static auto* const PGROUPCOLINACTIVELOCKED = &g_pConfigManager->getConfigValuePtr("group:groupbar:col.locked_inactive")->data; + g_pHyprRenderer->makeEGLCurrent(); + if (m_tGradientActive.m_iTexID != 0) { m_tGradientActive.destroyTexture(); m_tGradientInactive.destroyTexture();