mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 21:06:01 +01:00
renderer: don't calculate mirror damage without mirrors present
This commit is contained in:
parent
8d68d6bfa5
commit
9c3f3b0018
1 changed files with 9 additions and 9 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue