migrate tutorial5 docs

0.10
Ben Hansen 3 years ago
parent c0754f9dd3
commit 358ecb55af

@ -12,7 +12,7 @@ If we want to map an image to our mesh, we first need an image. Let's use this h
We'll use the [image crate](https://crates.io/crates/image) to load our tree. We already added to our dependencies in the first section, so all we have to do is use it.
In `State`'s `new()` method add the following just after creating the `swap_chain`:
In `State`'s `new()` method add the following just after configuring the `surface`:
```rust
surface.configure(&device, &config);

Loading…
Cancel
Save