mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Prefix some pixels functions with rgba8_
This commit is contained in:
parent
adf363a208
commit
a5779ad372
9 changed files with 15 additions and 15 deletions
|
@ -559,7 +559,7 @@ impl WebGLRenderingContext {
|
|||
_ => unimplemented!(),
|
||||
};
|
||||
|
||||
pixels::byte_swap_colors_inplace(&mut data);
|
||||
pixels::rgba8_byte_swap_colors_inplace(&mut data);
|
||||
|
||||
TexPixels::new(data, size, false)
|
||||
},
|
||||
|
@ -572,7 +572,7 @@ impl WebGLRenderingContext {
|
|||
}
|
||||
if let Some((mut data, size)) = canvas.fetch_all_data() {
|
||||
// Pixels got from Canvas have already alpha premultiplied
|
||||
pixels::byte_swap_colors_inplace(&mut data);
|
||||
pixels::rgba8_byte_swap_colors_inplace(&mut data);
|
||||
TexPixels::new(data, size, true)
|
||||
} else {
|
||||
return Ok(None);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue