renderer: don't calculate mirror damage without mirrors present

This commit is contained in:
Vaxry 2024-02-14 22:33:50 +00:00
parent 8d68d6bfa5
commit 9c3f3b0018

View file

@ -1232,7 +1232,7 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) {
TRACY_GPU_COLLECT; TRACY_GPU_COLLECT;
// calc frame damage if (!pMonitor->mirrors.empty()) {
CRegion frameDamage{}; CRegion frameDamage{};
const auto TRANSFORM = wlr_output_transform_invert(pMonitor->output->transform); const auto TRANSFORM = wlr_output_transform_invert(pMonitor->output->transform);
@ -1244,8 +1244,8 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) {
if (*PDAMAGEBLINK) if (*PDAMAGEBLINK)
frameDamage.add(damage); frameDamage.add(damage);
if (!pMonitor->mirrors.empty())
g_pHyprRenderer->damageMirrorsWith(pMonitor, frameDamage); g_pHyprRenderer->damageMirrorsWith(pMonitor, frameDamage);
}
pMonitor->renderingActive = false; pMonitor->renderingActive = false;