Skip to content

Commit

Permalink
Fix use-after-move
Browse files Browse the repository at this point in the history
  • Loading branch information
bdero committed Jul 24, 2024
1 parent abb7571 commit 1f8ad71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions impeller/entity/entity_pass.cc
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ void EntityPass::AddEntity(Entity entity) {
if (entity.GetBlendMode() > Entity::kLastPipelineBlendMode) {
advanced_blend_reads_from_pass_texture_ = true;
}
elements_.emplace_back(std::move(entity));
draw_order_resolver_.AddElement(elements_.size() - 1,
draw_order_resolver_.AddElement(elements_.size(),
entity.GetBlendMode() == BlendMode::kSource);
elements_.emplace_back(std::move(entity));
}

void EntityPass::PushClip(Entity entity) {
Expand Down

0 comments on commit 1f8ad71

Please sign in to comment.