Skip to content

Commit

Permalink
pass: ignore empty rectangles queued
Browse files Browse the repository at this point in the history
ref #8935
  • Loading branch information
vaxerski committed Jan 2, 2025
1 parent 4971725 commit f3c49c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/render/pass/RectPassElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ CRectPassElement::CRectPassElement(const CRectPassElement::SRectData& data_) : d
}

void CRectPassElement::draw(const CRegion& damage) {
if (data.box.w <= 0 || data.box.h <= 0)
return;

if (data.color.a == 1.F || !data.blur)
g_pHyprOpenGL->renderRectWithDamage(&data.box, data.color, damage, data.round);
else
Expand Down

0 comments on commit f3c49c1

Please sign in to comment.