diff options
author | Logan Dethrow <log@lindenlab.com> | 2011-07-28 10:41:59 -0400 |
---|---|---|
committer | Logan Dethrow <log@lindenlab.com> | 2011-07-28 10:41:59 -0400 |
commit | 814a2d24dca5181a31316a6f5e00e1a1cf55f23e (patch) | |
tree | c57c3bb773070bba41251a857b59549fe7e04303 /indra/llcommon/llfasttimer_class.cpp | |
parent | b6be1bb71853d6a5b6b6fd9423fa00ffc8ce096c (diff) | |
parent | 825fc273ee5167052d811dc058b1834c86e005da (diff) |
Merge
Diffstat (limited to 'indra/llcommon/llfasttimer_class.cpp')
-rw-r--r-- | indra/llcommon/llfasttimer_class.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/llcommon/llfasttimer_class.cpp b/indra/llcommon/llfasttimer_class.cpp index bd594b06cf..675eda2fc5 100644 --- a/indra/llcommon/llfasttimer_class.cpp +++ b/indra/llcommon/llfasttimer_class.cpp @@ -228,6 +228,14 @@ void LLFastTimer::DeclareTimer::updateCachedPointers() // update cached pointer it->mFrameState = &it->mTimer.getFrameState(); } + + // also update frame states of timers on stack
+ LLFastTimer* cur_timerp = LLFastTimer::sCurTimerData.mCurTimer;
+ while(cur_timerp->mLastTimerData.mCurTimer != cur_timerp)
+ {
+ cur_timerp->mFrameState = &cur_timerp->mFrameState->mTimer->getFrameState();
+ cur_timerp = cur_timerp->mLastTimerData.mCurTimer;
+ } } //static |