This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
impeller/entity/contents/filters Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments