Skip to content
This repository was archived by the owner on Jun 18, 2021. It is now read-only.

Commit a2c24c7

Browse files
committed
Switch event loop back to ControlFlow::Poll
1 parent f20a17b commit a2c24c7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

examples/framework.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ async fn run_async<E: Example>(event_loop: EventLoop<()>, window: Window) {
9494
*control_flow = if cfg!(feature = "metal-auto-capture") {
9595
ControlFlow::Exit
9696
} else {
97-
// TODO: ControlFlow::Poll
98-
ControlFlow::Wait
97+
ControlFlow::Poll
9998
};
10099
match event {
101100
event::Event::MainEventsCleared => window.request_redraw(),

examples/hello-triangle/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ async fn run(event_loop: EventLoop<()>, window: Window) {
9393
let mut swap_chain = device.create_swap_chain(&surface, &sc_desc);
9494

9595
event_loop.run(move |event, _, control_flow| {
96-
// TODO: ControlFlow::Poll;
97-
*control_flow = ControlFlow::Wait;
96+
*control_flow = ControlFlow::Poll;
9897
match event {
9998
Event::MainEventsCleared => window.request_redraw(),
10099
Event::WindowEvent {

0 commit comments

Comments
 (0)