Fix uninitialized member vars

This commit is contained in:
Ben Payne 2014-11-20 00:35:56 -05:00
parent 50238fb2ac
commit 98e79f3aec
2 changed files with 4 additions and 1 deletions

View file

@ -83,7 +83,8 @@ F32 ReflectionManager::smRefractTexScale = 0.5f;
ReflectionManager::ReflectionManager()
: mUpdateRefract( true ),
mReflectFormat( GFXFormatR8G8B8A8 )
mReflectFormat( GFXFormatR8G8B8A8 ),
mLastUpdateMs( 0 )
{
mTimer = PlatformTimer::create();

View file

@ -179,6 +179,8 @@ ReflectorBase::ReflectorBase()
mObject = NULL;
mOcclusionQuery = GFX->createOcclusionQuery();
mQueryPending = false;
score = 0.0f;
lastUpdateMs = 0;
}
ReflectorBase::~ReflectorBase()