summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-21 23:00:31 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-21 23:00:31 +0300
commit4fb515c4d3ec3b2109c7e406ae3169c534854513 (patch)
treeda7c94e59d8061f500e1d8ba22a495cc1091b853 /src/game.cpp
parent5a392e77e1d77becd1ada0bdf3984c7260b8e287 (diff)
downloadmv-4fb515c4d3ec3b2109c7e406ae3169c534854513.tar.gz
mv-4fb515c4d3ec3b2109c7e406ae3169c534854513.tar.bz2
mv-4fb515c4d3ec3b2109c7e406ae3169c534854513.tar.xz
mv-4fb515c4d3ec3b2109c7e406ae3169c534854513.zip
Add option for delayed OpenGL images load enable/disable.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 75317edac..253f9fb67 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -387,7 +387,8 @@ Game::Game():
top->add(viewport);
viewport->requestMoveToBottom();
- AnimatedSprite::setEnableCache(mainGraphics->getOpenGL());
+ AnimatedSprite::setEnableCache(mainGraphics->getOpenGL()
+ && config.getBoolValue("enableDelayedAnimations"));
createGuiWindows();