diff --git a/wgpu/examples/hello-triangle/main.rs b/wgpu/examples/hello-triangle/main.rs index 885ca20127..fe6f0c2132 100644 --- a/wgpu/examples/hello-triangle/main.rs +++ b/wgpu/examples/hello-triangle/main.rs @@ -93,6 +93,8 @@ async fn run(event_loop: EventLoop<()>, window: Window) { config.width = size.width; config.height = size.height; surface.configure(&device, &config); + // On macos the window needs to be redrawn manually after resizing + window.request_redraw(); } Event::RedrawRequested(_) => { let frame = surface diff --git a/wgpu/examples/hello-windows/main.rs b/wgpu/examples/hello-windows/main.rs index d25c6d12a6..ca725f44b3 100644 --- a/wgpu/examples/hello-windows/main.rs +++ b/wgpu/examples/hello-windows/main.rs @@ -108,6 +108,8 @@ async fn run(event_loop: EventLoop<()>, viewports: Vec<(Window, wgpu::Color)>) { // Recreate the swap chain with the new size if let Some(viewport) = viewports.get_mut(&window_id) { viewport.resize(&device, size); + // On macos the window needs to be redrawn manually after resizing + viewport.desc.window.request_redraw(); } } Event::RedrawRequested(window_id) => {