Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit d1a2c69

Browse files
committed
fixed zero sigma path
1 parent bae3001 commit d1a2c69

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

impeller/entity/contents/filters/gaussian_blur_filter_contents.cc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,11 @@ std::optional<Entity> GaussianBlurFilterContents::RenderFilter(
437437
}
438438

439439
if (scaled_sigma.x < kEhCloseEnough && scaled_sigma.y < kEhCloseEnough) {
440-
return Entity::FromSnapshot(input_snapshot.value(),
441-
entity.GetBlendMode()); // No blur to render.
440+
Entity result =
441+
Entity::FromSnapshot(input_snapshot.value(),
442+
entity.GetBlendMode()); // No blur to render.
443+
result.SetTransform(entity.GetTransform() * input_snapshot->transform);
444+
return result;
442445
}
443446

444447
// In order to avoid shimmering in downsampling step, we should have mips.

0 commit comments

Comments
 (0)