Skip to content

Commit

Permalink
examples: Update winit to 0.26 and image to 0.23
Browse files Browse the repository at this point in the history
Examples-only excerpt of #547, as the generator and ash-window example
changes need more work.  Fixes #550.
  • Loading branch information
MarijnS95 committed Jan 10, 2022
1 parent 570b554 commit c852e3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ authors = ["maik klein <maikklein@googlemail.com>"]
edition = "2018"

[dependencies]
winit = "0.25.0"
image = "0.10.4"
winit = "0.26"
image = "0.23"
# The examples require the validation layers, which means the SDK or
# equivalent development packages should be present, so we can link
# directly and benefit from the infallible `Entry` constructor.
Expand Down
2 changes: 1 addition & 1 deletion examples/src/bin/texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ fn main() {

let image = image::load_from_memory(include_bytes!("../../assets/rust.png"))
.unwrap()
.to_rgba();
.to_rgba8();
let image_dimensions = image.dimensions();
let image_data = image.into_raw();
let image_buffer_info = vk::BufferCreateInfo {
Expand Down

0 comments on commit c852e3b

Please sign in to comment.