Fix the ALPHA/FLOAT case of rgba8_image_to_tex_image_data

I'm pretty sure this is supposed to write the ALPHA component.
This commit is contained in:
Anthony Ramine 2018-09-08 18:06:51 +02:00
parent e192e4d97f
commit 6a692228fc

View file

@ -4107,7 +4107,7 @@ fn rgba8_image_to_tex_image_data(
(TexFormat::Alpha, TexDataType::Float) => {
for rgba8 in pixels.chunks_mut(4) {
let p = rgba8[0] as f32;
let p = rgba8[3] as f32;
NativeEndian::write_f32(rgba8, p);
}
pixels