summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-02 17:17:02 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-02 17:58:42 +0300
commit1933978cb800c2348e8891c69b28e85c9417b32d (patch)
tree955fc9530dcd4ed4ecb60ad9c38e213c77610d6d /src/game.cpp
parent2f3a3d08b0ba71972e20ae639a2077e9d4d17b94 (diff)
downloadmanaplus-1933978cb800c2348e8891c69b28e85c9417b32d.tar.gz
manaplus-1933978cb800c2348e8891c69b28e85c9417b32d.tar.bz2
manaplus-1933978cb800c2348e8891c69b28e85c9417b32d.tar.xz
manaplus-1933978cb800c2348e8891c69b28e85c9417b32d.zip
Use FBO for screenshots. Disabled for windows.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 70d794ce8..39d38ac5c 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -461,6 +461,7 @@ static bool saveScreenshot()
if (!config.getBoolValue("showip"))
{
mainGraphics->setSecure(true);
+ mainGraphics->prepareScreenshot();
gui->draw();
screenshot = mainGraphics->getScreenshot();
mainGraphics->setSecure(false);