Fixes libGL problem

This commit is contained in:
M. Broncano 2016-07-23 04:11:44 +00:00
parent 60c1d0a1f9
commit f3cf36fd94

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();