1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

Remove superfluous profiling scopes

This commit is contained in:
Emil Ernerfeldt
2023-11-09 19:50:53 +01:00
parent 0c300e183d
commit 3c8110eeeb

View File

@@ -1515,10 +1515,7 @@ mod glow_integration {
); );
} }
let clipped_primitives = { let clipped_primitives = integration.borrow().egui_ctx.tessellate(shapes);
crate::profile_scope!("tessellate");
integration.borrow().egui_ctx.tessellate(shapes)
};
{ {
let mut glutin = glutin.borrow_mut(); let mut glutin = glutin.borrow_mut();
glutin.current_gl_context = Some( glutin.current_gl_context = Some(
@@ -2488,10 +2485,7 @@ mod wgpu_integration {
state.borrow_mut().as_mut().unwrap(), state.borrow_mut().as_mut().unwrap(),
); );
let clipped_primitives = { let clipped_primitives = integration.borrow().egui_ctx.tessellate(shapes);
crate::profile_scope!("tessellate");
integration.borrow().egui_ctx.tessellate(shapes)
};
let integration = &mut *integration.borrow_mut(); let integration = &mut *integration.borrow_mut();
let screenshot_requested = &mut integration.frame.output.screenshot_requested; let screenshot_requested = &mut integration.frame.output.screenshot_requested;