Skip to content

Commit

Permalink
mention active draw phase in draw errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Feb 27, 2023
1 parent 519893a commit 9b990f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/re_renderer/src/view_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ impl ViewBuilder {
for queued_draw in &self.queued_draws {
if queued_draw.participated_phases.contains(&phase) {
(queued_draw.draw_func)(ctx, phase, pass, queued_draw.draw_data.as_ref())
.context("drawing a view")?;
.with_context(|| format!("Draw call during phase {phase:?}"))?;
}
}
Ok(())
Expand Down

0 comments on commit 9b990f3

Please sign in to comment.