Hopefully fixed the "black screen" bug.

At least for input configuration.
This commit is contained in:
Aloshi 2013-12-23 20:22:15 -06:00
parent 120f9a4e7b
commit b6577e630d

View file

@ -11,7 +11,7 @@
#include "../animations/LambdaAnimation.h"
ViewController::ViewController(Window* window)
: GuiComponent(window), mCurrentView(nullptr), mCamera(Eigen::Affine3f::Identity()), mFadeOpacity(1), mLockInput(false)
: GuiComponent(window), mCurrentView(nullptr), mCamera(Eigen::Affine3f::Identity()), mFadeOpacity(0), mLockInput(false)
{
// slot 1 so the fade carries over
setAnimation(new LambdaAnimation([&] (float t) { mFadeOpacity = lerp<float>(1.0f, 0.0f, t); }, 900), nullptr, false, 1);