From 03068a87345ab968d96ab0f640f039dc363017aa Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Mon, 10 Jan 2022 22:43:18 +0100 Subject: [PATCH] examples: Update winit to 0.26 and image to 0.23 (#551) Examples-only excerpt of #547, as the generator and ash-window example changes need more work. Fixes #550. --- examples/Cargo.toml | 4 ++-- examples/src/bin/texture.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 0e31ba0..3615ed0 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -5,8 +5,8 @@ authors = ["maik klein "] 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. diff --git a/examples/src/bin/texture.rs b/examples/src/bin/texture.rs index 2107849..310a7bf 100644 --- a/examples/src/bin/texture.rs +++ b/examples/src/bin/texture.rs @@ -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 {