Skip to content

Commit

Permalink
Update glow_integration.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Jun 12, 2024
1 parent ce2cd25 commit d5a0a95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/eframe/src/native/glow_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -652,8 +652,6 @@ impl GlowWinitRunning {
let gl_surface = viewport.gl_surface.as_ref().unwrap();
let egui_winit = viewport.egui_winit.as_mut().unwrap();

egui_winit.handle_platform_output(&window, platform_output);

let clipped_primitives = integration.egui_ctx.tessellate(shapes, pixels_per_point);

{
Expand Down Expand Up @@ -734,6 +732,8 @@ impl GlowWinitRunning {
}
}

egui_winit.handle_platform_output(window, &viewport_id, platform_output);

glutin.handle_viewport_output(event_loop, &integration.egui_ctx, &viewport_output);

integration.report_frame_time(frame_timer.total_time_sec()); // don't count auto-save time as part of regular frame time
Expand Down Expand Up @@ -1508,7 +1508,7 @@ fn render_immediate_viewport(
}
}

egui_winit.handle_platform_output(window, platform_output);
egui_winit.handle_platform_output(window, &viewport_id, platform_output);

glutin.handle_viewport_output(event_loop, egui_ctx, &viewport_output);
}
Expand Down

0 comments on commit d5a0a95

Please sign in to comment.