Merge pull request #55 from mbroncano/master

Fixes libGL problem
This commit is contained in:
Jools Wills 2016-07-23 12:10:27 +01:00 committed by GitHub
commit d14195e4a0

View file

@ -13,7 +13,6 @@ Window::Window() : mNormalizeNextUpdate(false), mFrameTimeElapsed(0), mFrameCoun
{
mHelp = new HelpComponent(this);
mBackgroundOverlay = new ImageComponent(this);
mBackgroundOverlay->setImage(":/scroll_gradient.png");
}
Window::~Window()
@ -65,6 +64,8 @@ bool Window::init(unsigned int width, unsigned int height)
return false;
}
mBackgroundOverlay->setImage(":/scroll_gradient.png");
InputManager::getInstance()->init();
ResourceManager::getInstance()->reloadAll();