diff --git a/winit/src/lib.rs b/winit/src/lib.rs index bb9500e8..23bcc091 100644 --- a/winit/src/lib.rs +++ b/winit/src/lib.rs @@ -751,6 +751,7 @@ async fn run_instance

( .get_mut(&id) .expect("Get user interface"); + let draw_span = debug::draw(id); let (ui_state, _) = ui.update( &[redraw_event.clone()], cursor, @@ -759,7 +760,6 @@ async fn run_instance

( &mut messages, ); - let draw_span = debug::draw(id); let new_mouse_interaction = ui.draw( &mut window.renderer, window.state.theme(),