diff options
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index 8fdb2b230..75317edac 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -23,6 +23,7 @@ #include "game.h" #include "auctionmanager.h" +#include "animatedsprite.h" #include "channelmanager.h" #include "commandhandler.h" #include "effectmanager.h" @@ -386,6 +387,8 @@ Game::Game(): top->add(viewport); viewport->requestMoveToBottom(); + AnimatedSprite::setEnableCache(mainGraphics->getOpenGL()); + createGuiWindows(); windowMenu = new WindowMenu; @@ -569,6 +572,8 @@ void Game::slowLogic() killStats->recalcStats(); if (shopWindow) shopWindow->updateTimes(); + if (mainGraphics->getOpenGL()) + ResourceManager::delayedLoad(); PacketCounters::update(); // Handle network stuff |