Merge pull request #581 from tdev/vs2012_fixes

Visual Studio 2012 32Bit Level 4 Warning fixes
This commit is contained in:
Thomas Fischer 2014-03-17 10:02:19 +01:00
commit 7239c791f2
13 changed files with 24 additions and 34 deletions

View file

@ -189,11 +189,8 @@ void ReflectionManager::update( F32 timeSlice,
break;
}
U32 totalElapsed = mTimer->getElapsedMs();
// Set metric/debug related script variables...
U32 numEnabled = mReflectors.size();
U32 numVisible = 0;
U32 numOccluded = 0;
@ -208,6 +205,8 @@ void ReflectionManager::update( F32 timeSlice,
}
#ifdef TORQUE_GATHER_METRICS
U32 numEnabled = mReflectors.size();
U32 totalElapsed = mTimer->getElapsedMs();
const GFXTextureProfileStats &stats = ReflectRenderTargetProfile.getStats();
F32 mb = ( stats.activeBytes / 1024.0f ) / 1024.0f;