mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Adjust PNG encoder color type to match what's read from gl2
This should fix images produced by the -o flag.
This commit is contained in:
parent
c5d81f13c1
commit
608cd612df
1 changed files with 1 additions and 1 deletions
|
@ -373,7 +373,7 @@ pub fn run_compositor(compositor: &CompositorTask) {
|
||||||
let img = png::Image {
|
let img = png::Image {
|
||||||
width: width as u32,
|
width: width as u32,
|
||||||
height: height as u32,
|
height: height as u32,
|
||||||
color_type: png::RGBA8,
|
color_type: png::RGB8,
|
||||||
pixels: pixels,
|
pixels: pixels,
|
||||||
};
|
};
|
||||||
let res = png::store_png(&img, &path);
|
let res = png::store_png(&img, &path);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue