mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Don't save alpha channel in screenshots (fixes #1451)
This commit is contained in:
parent
f3eefeb794
commit
b2102bfe49
1 changed files with 1 additions and 1 deletions
|
@ -2068,7 +2068,7 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
|
||||||
}
|
}
|
||||||
else if(input->wasKeyDown(getKeySetting("keymap_screenshot")))
|
else if(input->wasKeyDown(getKeySetting("keymap_screenshot")))
|
||||||
{
|
{
|
||||||
irr::video::IImage* const image = driver->createScreenShot();
|
irr::video::IImage* const image = driver->createScreenShot(video::ECF_R8G8B8);
|
||||||
if (image) {
|
if (image) {
|
||||||
irr::c8 filename[256];
|
irr::c8 filename[256];
|
||||||
snprintf(filename, 256, "%s" DIR_DELIM "screenshot_%u.png",
|
snprintf(filename, 256, "%s" DIR_DELIM "screenshot_%u.png",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue