Fix profiling with tracy. (#5988)

The profiling APIs require a `&str`, but since the label here
is now an `Option<String>`, we must get a `&str` from it.
This commit is contained in:
Bruce Mitchener authored and GitHub committed 2024-07-19 00:56:16 -04:00
1 parent 8aed6ed220
commit 20973d1cdc
2 files changed
+7 -1

No files matched your search

+1 -1
View File
@@ -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 {