pass/rect: fix bounding box
This commit is contained in:
parent
bb099e5733
commit
d075d1cab9
1 changed files with 2 additions and 2 deletions
|
|
@ -24,9 +24,9 @@ bool CRectPassElement::needsPrecomputeBlur() {
|
||||||
}
|
}
|
||||||
|
|
||||||
std::optional<CBox> CRectPassElement::boundingBox() {
|
std::optional<CBox> CRectPassElement::boundingBox() {
|
||||||
return data.box.copy().expand(-data.round);
|
return data.box;
|
||||||
}
|
}
|
||||||
|
|
||||||
CRegion CRectPassElement::opaqueRegion() {
|
CRegion CRectPassElement::opaqueRegion() {
|
||||||
return data.color.a >= 1.F ? *boundingBox() : CRegion{};
|
return data.color.a >= 1.F ? boundingBox()->expand(-data.round) : CRegion{};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue