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:
parent
e541ba267f
commit
1a6f2aba08
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue