projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3eefeb
)
Don't save alpha channel in screenshots (fixes #1451)
author
BlockMen
<nmuelll@web.de>
Wed, 3 Sep 2014 01:51:49 +0000
(
03:51
+0200)
committer
BlockMen
<nmuelll@web.de>
Wed, 3 Sep 2014 09:39:29 +0000
(11:39 +0200)
src/game.cpp
patch
|
blob
|
history
diff --git
a/src/game.cpp
b/src/game.cpp
index 7f15362abcc168ebd49161e009017ca1ff851070..6ac320af86da2e08490812e75dc92aedc1d92d8b 100644
(file)
--- 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",