Skip to content

Commit

Permalink
Fix typo in tutorial.
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharydenton authored Oct 29, 2017
1 parent 3471044 commit 9bef166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/tuto-06-texture.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use std::io::Cursor;
let image = image::load(Cursor::new(&include_bytes!("/path/to/image.png")[..]),
image::PNG).unwrap().to_rgba();
let image_dimensions = image.dimensions();
let image = glium::texture::RawImage2d::from_raw_rgba_reversed(image.into_raw(), image_dimensions);
let image = glium::texture::RawImage2d::from_raw_rgba_reversed(&image.into_raw(), image_dimensions);
```

And in order to upload the image as a texture, it's as simple as:
Expand Down

0 comments on commit 9bef166

Please sign in to comment.