diff --git a/crates/eframe/src/native/glow_integration.rs b/crates/eframe/src/native/glow_integration.rs index bd9bdac2d8b..9a820bec770 100644 --- a/crates/eframe/src/native/glow_integration.rs +++ b/crates/eframe/src/native/glow_integration.rs @@ -154,7 +154,8 @@ impl GlowWinitApp { event_loop, native_options, window_settings, - ); + ) + .with_visible(false); // Start hidden until we render the first frame to fix white flash on startup (https://github.com/emilk/egui/pull/3631) let mut glutin_window_context = unsafe { GlutinWindowContext::new(egui_ctx, winit_window_builder, native_options, event_loop)? diff --git a/crates/eframe/src/native/wgpu_integration.rs b/crates/eframe/src/native/wgpu_integration.rs index 995014a6168..07e36f96b50 100644 --- a/crates/eframe/src/native/wgpu_integration.rs +++ b/crates/eframe/src/native/wgpu_integration.rs @@ -837,7 +837,9 @@ fn create_window( event_loop, native_options, window_settings, - ); + ) + .with_visible(false); // Start hidden until we render the first frame to fix white flash on startup (https://github.com/emilk/egui/pull/3631) + let window = { crate::profile_scope!("WindowBuilder::build"); create_winit_window_builder(egui_ctx, event_loop, viewport_builder.clone())