Skip to content

Commit

Permalink
Fix profiling with tracy.
Browse files Browse the repository at this point in the history
The profiling APIs require a `&str`, but since the label here
is now an `Option<String>`, we must get a `&str` from it.
  • Loading branch information
waywardmonkeys committed Jul 19, 2024
1 parent 8aed6ed commit 41a6fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgpu-core/src/command/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1566,7 +1566,7 @@ impl Global {

profiling::scope!(
"CommandEncoder::run_render_pass {}",
base.label.unwrap_or("")
base.label.as_deref().unwrap_or("")
);

let Some(cmd_buf) = pass.parent.as_ref() else {
Expand Down

0 comments on commit 41a6fc8

Please sign in to comment.