diff options
author | Leyla Farazha <leyla@lindenlab.com> | 2011-07-21 13:27:43 -0700 |
---|---|---|
committer | Leyla Farazha <leyla@lindenlab.com> | 2011-07-21 13:27:43 -0700 |
commit | 8d9901718022f34e9eb93c339dda796da52d0545 (patch) | |
tree | edef7846371cec40a882982f26d147dd3e1bf509 /indra/llcommon/llfasttimer_class.cpp | |
parent | ae9b7f3f42534927f7f8c2198baa127a26dbe01e (diff) | |
parent | fecf706f1be58f76df81f8bc1a4a5f3307cee6ff (diff) |
merge
Diffstat (limited to 'indra/llcommon/llfasttimer_class.cpp')
-rw-r--r-- | indra/llcommon/llfasttimer_class.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llcommon/llfasttimer_class.cpp b/indra/llcommon/llfasttimer_class.cpp index bd594b06cf..1dfc194d7c 100644 --- a/indra/llcommon/llfasttimer_class.cpp +++ b/indra/llcommon/llfasttimer_class.cpp @@ -228,6 +228,13 @@ 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 |