Skip to content

Commit

Permalink
pass/rect: fix bounding box
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Jan 23, 2025
1 parent bb099e5 commit 4154228
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/render/pass/RectPassElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ bool CRectPassElement::needsPrecomputeBlur() {
}

std::optional<CBox> CRectPassElement::boundingBox() {
return data.box.copy().expand(-data.round);
return data.box;
}

CRegion CRectPassElement::opaqueRegion() {
return data.color.a >= 1.F ? *boundingBox() : CRegion{};
return data.color.a >= 1.F ? boundingBox()->copy().expand(-data.round) : CRegion{};
}

0 comments on commit 4154228

Please sign in to comment.