diff --git a/crates/eframe/src/native/wgpu_integration.rs b/crates/eframe/src/native/wgpu_integration.rs index 9cbd9675e9c..2ea167d3ea8 100644 --- a/crates/eframe/src/native/wgpu_integration.rs +++ b/crates/eframe/src/native/wgpu_integration.rs @@ -694,8 +694,6 @@ impl WgpuWinitRunning { integration.post_rendering(window); - let active_viewports_ids: ViewportIdSet = viewport_output.keys().copied().collect(); - handle_viewport_output( &integration.egui_ctx, &viewport_output, @@ -704,11 +702,6 @@ impl WgpuWinitRunning { viewport_from_window, ); - // Prune dead viewports: - viewports.retain(|id, _| active_viewports_ids.contains(id)); - viewport_from_window.retain(|_, id| active_viewports_ids.contains(id)); - painter.gc_viewports(&active_viewports_ids); - let window = viewport_from_window .get(&window_id) .and_then(|id| viewports.get(id))