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

Commit 257d12f

Browse files
author
jonahwilliams
committed
++
1 parent 5d3099a commit 257d12f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

impeller/entity/contents/filters/blend_filter_contents.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,10 @@ static std::optional<Entity> AdvancedBlend(
118118
typename FS::BlendInfo blend_info;
119119
typename VS::FrameInfo frame_info;
120120

121-
frame_info.src_y_coord_scale = src_snapshot->texture->GetYCoordScale();
122-
frame_info.dst_y_coord_scale = dst_snapshot->texture->GetYCoordScale();
123-
124121
auto dst_sampler = renderer.GetContext()->GetSamplerLibrary()->GetSampler(
125122
dst_snapshot->sampler_descriptor);
126123
FS::BindTextureSamplerDst(cmd, dst_snapshot->texture, dst_sampler);
124+
frame_info.dst_y_coord_scale = dst_snapshot->texture->GetYCoordScale();
127125
blend_info.dst_input_alpha = absorb_opacity ? dst_snapshot->opacity : 1.0;
128126

129127
if (foreground_color.has_value()) {
@@ -138,6 +136,7 @@ static std::optional<Entity> AdvancedBlend(
138136
src_snapshot->sampler_descriptor);
139137
blend_info.color_factor = 0;
140138
FS::BindTextureSamplerSrc(cmd, src_snapshot->texture, src_sampler);
139+
frame_info.src_y_coord_scale = src_snapshot->texture->GetYCoordScale();
141140
}
142141
auto blend_uniform = host_buffer.EmplaceUniform(blend_info);
143142
FS::BindBlendInfo(cmd, blend_uniform);

0 commit comments

Comments
 (0)