mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
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:
parent
e192e4d97f
commit
6a692228fc
1 changed files with 1 additions and 1 deletions
|
@ -4107,7 +4107,7 @@ fn rgba8_image_to_tex_image_data(
|
||||||
|
|
||||||
(TexFormat::Alpha, TexDataType::Float) => {
|
(TexFormat::Alpha, TexDataType::Float) => {
|
||||||
for rgba8 in pixels.chunks_mut(4) {
|
for rgba8 in pixels.chunks_mut(4) {
|
||||||
let p = rgba8[0] as f32;
|
let p = rgba8[3] as f32;
|
||||||
NativeEndian::write_f32(rgba8, p);
|
NativeEndian::write_f32(rgba8, p);
|
||||||
}
|
}
|
||||||
pixels
|
pixels
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue