From 106486bd99a4281be461626bad6d862d0e65bcb9 Mon Sep 17 00:00:00 2001 From: bg <40744358+blamelessgames@users.noreply.github.com> Date: Sat, 21 Nov 2020 12:26:35 -0800 Subject: [PATCH] fix deprecation error in image_texture_loader (and CI error) (#906) fix deprecation error in image_texture_loader (and CI error) --- .github/workflows/ci.yml | 4 ++-- crates/bevy_render/src/texture/image_texture_loader.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c022847a2e..6f03573372 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/crates/bevy_render/src/texture/image_texture_loader.rs b/crates/bevy_render/src/texture/image_texture_loader.rs index 0f33507f1e..2def1cf638 100644 --- a/crates/bevy_render/src/texture/image_texture_loader.rs +++ b/crates/bevy_render/src/texture/image_texture_loader.rs @@ -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();