diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2013-11-22 15:46:50 -0700 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2013-11-22 15:46:50 -0700 |
commit | 0954d4f5d563740d0425fb9e8d118a95a34bd283 (patch) | |
tree | 9e3e0693377f23ce32d5d65b1a6ee70d7c6db7e0 /indra/newview/pipeline.cpp | |
parent | fbd0d85e547ccef688fb0a5dcfbb8a442de25f45 (diff) |
fix for SH-4632: Water over land doesn't render when teleporting to the same place twice with location toolbar
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rwxr-xr-x | indra/newview/pipeline.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index c2c981893a..c4fa80f0a2 100755 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -7385,12 +7385,26 @@ void LLPipeline::resetVertexBuffers() static LLTrace::BlockTimerStatHandle FTM_RESET_VB("Reset VB"); -void LLPipeline::doResetVertexBuffers() +void LLPipeline::doResetVertexBuffers(bool forced) { if (!mResetVertexBuffers) { return; } + if(!forced && LLSpatialPartition::sTeleportRequested) + { + if(gAgent.getTeleportState() != LLAgent::TELEPORT_NONE) + { + return; //wait for teleporting to finish + } + else + { + //teleporting aborted + LLSpatialPartition::sTeleportRequested = FALSE; + mResetVertexBuffers = false; + return; + } + } LL_RECORD_BLOCK_TIME(FTM_RESET_VB); mResetVertexBuffers = false; |