From a07fc6b91050e80d1afe49b6436bbdb713dfa72e Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Tue, 12 Aug 2025 15:13:23 -0700 Subject: [PATCH] [Impeller] Apply Y coordinate scaling when sampling from the destination texture in framebuffer advanced blends (#173639) Fixes https://github.com/flutter/flutter/issues/173162 --- .../impeller/entity/contents/filters/blend_filter_contents.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/impeller/entity/contents/filters/blend_filter_contents.cc b/engine/src/flutter/impeller/entity/contents/filters/blend_filter_contents.cc index 3672e705bc0..05298e679ef 100644 --- a/engine/src/flutter/impeller/entity/contents/filters/blend_filter_contents.cc +++ b/engine/src/flutter/impeller/entity/contents/filters/blend_filter_contents.cc @@ -706,7 +706,8 @@ std::optional BlendFilterContents::CreateFramebufferAdvancedBlend( VS::FrameInfo frame_info; frame_info.mvp = Matrix::MakeOrthographic(ISize(1, 1)); - frame_info.texture_sampler_y_coord_scale = 1.0; + frame_info.texture_sampler_y_coord_scale = + dst_snapshot->texture->GetYCoordScale(); FS::FragInfo frag_info; frag_info.alpha = 1.0;