Skip to content

Commit

Permalink
fixes sotrh#429
Browse files Browse the repository at this point in the history
  • Loading branch information
sotrh committed Dec 28, 2022
1 parent 9a14ea3 commit 3fde56d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions code/showcase/lost-window/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async fn run() -> anyhow::Result<()> {
};
surface.configure(&device, &config);

let mut last_time = Instant::now();
let start_time = Instant::now();
window.as_ref().unwrap().set_visible(true);
window2.set_visible(true);
event_loop.run(move |ev, _, cf| {
Expand Down Expand Up @@ -92,7 +92,7 @@ async fn run() -> anyhow::Result<()> {
}
Event::RedrawEventsCleared => {
let current_time = Instant::now();
let dt = current_time - last_time;
let dt = current_time - start_time;
// last_time = current_time;

if let Some(w) = window.as_ref() {
Expand All @@ -118,8 +118,6 @@ async fn run() -> anyhow::Result<()> {
_ => (),
}
});

Ok(())
}

fn main() -> anyhow::Result<()> {
Expand Down
Binary file modified docs/beginner/tutorial5-textures/rightside-up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/beginner/tutorial6-uniforms/static-tree.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3fde56d

Please sign in to comment.