mirror of
https://github.com/sotrh/learn-wgpu.git
synced 2024-11-16 06:12:55 +00:00
Remove block_on in calls to State update & render
This commit is contained in:
parent
1dcbae76fd
commit
1f30a90951
@ -301,8 +301,8 @@ event_loop.run(move |event, _, control_flow| {
|
||||
match event {
|
||||
// ...
|
||||
Event::RedrawRequested(_) => {
|
||||
block_on(state.update());
|
||||
block_on(state.render());
|
||||
state.update();
|
||||
state.render();
|
||||
}
|
||||
Event::MainEventsCleared => {
|
||||
// RedrawRequested will only trigger once, unless we manually
|
||||
|
Loading…
Reference in New Issue
Block a user