Merge branch 'screenshot' into 'master'

Don't include an alpha channel when creating a screenshot file.

See merge request veloren/veloren!4222
This commit is contained in:
Imbris 2024-01-01 21:41:41 +00:00
commit 35fc92f872

View File

@ -1360,7 +1360,7 @@ impl Window {
.unwrap_or(0) .unwrap_or(0)
)); ));
// Try to save the image // Try to save the image
if let Err(e) = image.into_rgba8().save(&path) { if let Err(e) = image.into_rgb8().save(&path) {
warn!(?e, "Couldn't save screenshot"); warn!(?e, "Couldn't save screenshot");
let _result = sender.send(String::from("Couldn't save screenshot")); let _result = sender.send(String::from("Couldn't save screenshot"));
} else { } else {