mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
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:
committed by
Emil Ernerfeldt
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user