pass: remove renderer finalDamage since it's unused (#9996)

This commit is contained in:
Ikalco 2025-04-09 10:50:06 -05:00 committed by GitHub
parent 4f991610d0
commit 0a7e2cb152
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 21 deletions

View file

@ -119,8 +119,7 @@ CRegion CRenderPass::render(const CRegion& damage_) {
}
if (damage.empty()) {
g_pHyprOpenGL->m_RenderData.damage = damage;
g_pHyprOpenGL->m_RenderData.finalDamage = damage;
g_pHyprOpenGL->m_RenderData.damage = damage;
return damage;
}
@ -150,16 +149,13 @@ CRegion CRenderPass::render(const CRegion& damage_) {
blurRegion.intersect(damage).expand(oneBlurRadius());
g_pHyprOpenGL->m_RenderData.finalDamage = blurRegion.copy().add(damage);
// FIXME: why does this break on * 1.F ?
// used to work when we expand all the damage... I think? Well, before pass.
// moving a window over blur shows the edges being wonk.
blurRegion.expand(oneBlurRadius() * 1.5F);
damage = blurRegion.copy().add(damage);
} else
g_pHyprOpenGL->m_RenderData.finalDamage = damage;
}
if (std::ranges::any_of(m_vPassElements, [](const auto& el) { return el->element->disableSimplification(); })) {
for (auto& el : m_vPassElements) {