mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Don't include an alpha channel when creating a screenshot file.
This commit is contained in:
parent
62dc6acc32
commit
4156dd56f3
@ -1360,7 +1360,7 @@ impl Window {
|
||||
.unwrap_or(0)
|
||||
));
|
||||
// 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");
|
||||
let _result = sender.send(String::from("Couldn't save screenshot"));
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user