engine/render/vulkan: fix loading grayscale maps

master
q3k 2021-04-03 14:05:48 +00:00
parent 17adbf28f4
commit 6768f4d68c
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ impl ChannelLayoutVulkan for color::LinearF32 {
}, "linearf32 texture must be 8-bit grayscale");
let gray = image.to_luma();
mipmapped_from_iter(width, height, vf::Format::R8G8B8A8Unorm, gray.into_raw().iter().cloned(), graphics_queue)
mipmapped_from_iter(width, height, vf::Format::R8Unorm, gray.into_raw().iter().cloned(), graphics_queue)
}
fn vulkan_from_value(