Fix profiling::scope compile error when profiling using tracing backend (#7646)

* Closes https://github.com/emilk/egui/issues/7645
* [x] I have followed the instructions in the PR template
This commit is contained in:
Pēteris Pakalns 2025-11-02 12:28:33 +02:00 committed by Emil Ernerfeldt
parent e541ba267f
commit 1a6f2aba08
1 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ impl Plugin for CallbackPlugin {
profiling::function_scope!();
for (_debug_name, cb) in &self.on_begin_plugins {
profiling::scope!(*_debug_name);
profiling::scope!("on_begin_pass", *_debug_name);
(cb)(ctx);
}
}
@ -240,7 +240,7 @@ impl Plugin for CallbackPlugin {
profiling::function_scope!();
for (_debug_name, cb) in &self.on_end_plugins {
profiling::scope!(*_debug_name);
profiling::scope!("on_end_pass", *_debug_name);
(cb)(ctx);
}
}