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

This reverts commit 0a7e2cb152.
This commit is contained in:
Vaxry 2025-04-11 00:34:50 +02:00 committed by GitHub
parent b83c9f5c6f
commit 382f0f23f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 21 additions and 10 deletions

View file

@ -119,7 +119,8 @@ CRegion CRenderPass::render(const CRegion& damage_) {
}
if (damage.empty()) {
g_pHyprOpenGL->m_RenderData.damage = damage;
g_pHyprOpenGL->m_RenderData.damage = damage;
g_pHyprOpenGL->m_RenderData.finalDamage = damage;
return damage;
}
@ -149,13 +150,16 @@ 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) {