From ce2cd25c785af271ddef8b7abda390e9ae0e7283 Mon Sep 17 00:00:00 2001 From: rustbasic <127506429+rustbasic@users.noreply.github.com> Date: Wed, 12 Jun 2024 21:45:57 +0900 Subject: [PATCH] Update wgpu_integration.rs --- crates/eframe/src/native/wgpu_integration.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/eframe/src/native/wgpu_integration.rs b/crates/eframe/src/native/wgpu_integration.rs index 28f149f0b3f..63ef1e586b1 100644 --- a/crates/eframe/src/native/wgpu_integration.rs +++ b/crates/eframe/src/native/wgpu_integration.rs @@ -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 @@ -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, @@ -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,