From c3c5d3927a7320689bdecaf9f50f86bf7d04a9cf Mon Sep 17 00:00:00 2001 From: Joshua Groves Date: Mon, 13 Apr 2020 20:56:01 -0230 Subject: [PATCH] [rs] Switch event loop back to `ControlFlow::Poll` --- wgpu/examples/framework.rs | 3 +-- wgpu/examples/hello-triangle/main.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/wgpu/examples/framework.rs b/wgpu/examples/framework.rs index a6702c7ece..4445318068 100644 --- a/wgpu/examples/framework.rs +++ b/wgpu/examples/framework.rs @@ -94,8 +94,7 @@ async fn run_async(event_loop: EventLoop<()>, window: Window) { *control_flow = if cfg!(feature = "metal-auto-capture") { ControlFlow::Exit } else { - // TODO: ControlFlow::Poll - ControlFlow::Wait + ControlFlow::Poll }; match event { event::Event::MainEventsCleared => window.request_redraw(), diff --git a/wgpu/examples/hello-triangle/main.rs b/wgpu/examples/hello-triangle/main.rs index a2f1438808..5ad4d016f1 100644 --- a/wgpu/examples/hello-triangle/main.rs +++ b/wgpu/examples/hello-triangle/main.rs @@ -93,8 +93,7 @@ async fn run(event_loop: EventLoop<()>, window: Window) { let mut swap_chain = device.create_swap_chain(&surface, &sc_desc); event_loop.run(move |event, _, control_flow| { - // TODO: ControlFlow::Poll; - *control_flow = ControlFlow::Wait; + *control_flow = ControlFlow::Poll; match event { Event::MainEventsCleared => window.request_redraw(), Event::WindowEvent {