mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
fix deprecation error in image_texture_loader (and CI error) (#906)
fix deprecation error in image_texture_loader (and CI error)
This commit is contained in:
parent
d11be437cb
commit
106486bd99
2 changed files with 4 additions and 4 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -108,10 +108,10 @@ jobs:
|
|||
override: true
|
||||
|
||||
- name: Install alsa
|
||||
run: sudo apt-get install --no-install-recommends libasound2-dev
|
||||
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev
|
||||
|
||||
- name: Install udev
|
||||
run: sudo apt-get install --no-install-recommends libudev-dev
|
||||
run: sudo apt-get update; sudo apt-get install --no-install-recommends libudev-dev
|
||||
|
||||
- name: Check the format
|
||||
run: cargo +nightly fmt --all -- --check
|
||||
|
|
|
@ -65,7 +65,7 @@ impl AssetLoader for ImageTextureLoader {
|
|||
data = i.into_raw();
|
||||
}
|
||||
image::DynamicImage::ImageRgb8(i) => {
|
||||
let i = image::DynamicImage::ImageRgb8(i).into_rgba();
|
||||
let i = image::DynamicImage::ImageRgb8(i).into_rgba8();
|
||||
width = i.width();
|
||||
height = i.height();
|
||||
format = TextureFormat::Rgba8UnormSrgb;
|
||||
|
@ -80,7 +80,7 @@ impl AssetLoader for ImageTextureLoader {
|
|||
data = i.into_raw();
|
||||
}
|
||||
image::DynamicImage::ImageBgr8(i) => {
|
||||
let i = image::DynamicImage::ImageBgr8(i).into_bgra();
|
||||
let i = image::DynamicImage::ImageBgr8(i).into_bgra8();
|
||||
|
||||
width = i.width();
|
||||
height = i.height();
|
||||
|
|
Loading…
Reference in a new issue