Skip to content

Commit

Permalink
Update wgpu_integration.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Jun 12, 2024
1 parent ca36f3d commit ce2cd25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/eframe/src/native/wgpu_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -663,8 +663,6 @@ impl WgpuWinitRunning {
return EventResult::Wait;
};

egui_winit.handle_platform_output(window, platform_output);

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

let screenshot_requested = viewport
Expand Down Expand Up @@ -718,6 +716,8 @@ impl WgpuWinitRunning {

let active_viewports_ids: ViewportIdSet = viewport_output.keys().copied().collect();

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

handle_viewport_output(
&integration.egui_ctx,
&viewport_output,
Expand Down Expand Up @@ -1028,7 +1028,7 @@ fn render_immediate_viewport(
false,
);

egui_winit.handle_platform_output(window, platform_output);
egui_winit.handle_platform_output(window, &ids.this, platform_output);

handle_viewport_output(
&egui_ctx,
Expand Down

0 comments on commit ce2cd25

Please sign in to comment.