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.
This commit is contained in:
Marijn Suijten 2022-01-10 22:43:18 +01:00 committed by GitHub
parent 130c150841
commit 03068a8734
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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.

View file

@ -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 {