aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBlockMen <nmuelll@web.de>2014-09-03 03:51:49 +0200
committerBlockMen <nmuelll@web.de>2014-09-03 11:39:29 +0200
commitb2102bfe49002f1ac10ca8288f5337e9feec7f65 (patch)
tree8553edbf81cac1c130cb196b42a961b0710baa5d /src
parentf3eefeb7948b8b8d1a98f2f89baa39abc807f72d (diff)
downloadminetest-b2102bfe49002f1ac10ca8288f5337e9feec7f65.tar.gz
minetest-b2102bfe49002f1ac10ca8288f5337e9feec7f65.tar.bz2
minetest-b2102bfe49002f1ac10ca8288f5337e9feec7f65.zip
Don't save alpha channel in screenshots (fixes #1451)
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 7f15362ab..6ac320af8 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -2068,7 +2068,7 @@ void the_game(bool &kill, bool random_input, InputHandler *input,
}
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) {
irr::c8 filename[256];
snprintf(filename, 256, "%s" DIR_DELIM "screenshot_%u.png",