more VS2012 L4 warning fixes

This commit is contained in:
Thomas Fischer 2014-03-15 11:51:36 +01:00
parent 502e346eb6
commit 2844ab6912
20 changed files with 30 additions and 8 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;

View file

@ -901,6 +901,7 @@ void SceneZoneSpaceManager::verifyState()
continue;
SceneZoneSpace* otherSpace = mZoneSpaces[ n ];
TORQUE_UNUSED(otherSpace);
AssertFatal( otherSpace->getZoneRangeStart() >= zoneRangeStart + numZones ||
otherSpace->getZoneRangeStart() + otherSpace->getZoneRange() <= zoneRangeStart,
"SceneZoneSpaceManager::verifyState - Overlap between zone ID ranges of zone spaces!" );