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

Commit 5828898

Browse files
committed
Reset next replay index when switching subpasses
1 parent 95b69d0 commit 5828898

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

impeller/entity/entity_pass_clip_stack.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ void EntityPassClipStack::PushSubpass(std::optional<Rect> subpass_coverage,
3939
.clip_height = clip_height},
4040
},
4141
});
42+
next_replay_index_ = 0;
4243
}
4344

4445
void EntityPassClipStack::PopSubpass() {
4546
subpass_state_.pop_back();
47+
next_replay_index_ = subpass_state_.back().rendered_clip_entities.size();
4648
}
4749

4850
const std::vector<ClipCoverageLayer>

0 commit comments

Comments
 (0)