diff options
| author | Dave Parks <davep@lindenlab.com> | 2011-09-27 14:55:00 -0500 | 
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2011-09-27 14:55:00 -0500 | 
| commit | 8a5c983640ac23f6a588d78c433d2a36ddf4fa70 (patch) | |
| tree | b533c688c10628194e517142b1061cf5f0fcea79 /indra | |
| parent | d0b5a521f21ab8002fb5d9a4d11cee6c2385dbf3 (diff) | |
SH-2505 Fix for some objects appearing as blobs of busted geometry on vertex buffer update.
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/pipeline.cpp | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 8c1bb0f628..2bbb2edc1a 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -2752,6 +2752,11 @@ void LLPipeline::stateSort(LLCamera& camera, LLCullResult &result)  			{  				markVisible(*i, camera);  			} + +			if (!sDelayVBUpdate) +			{ //rebuild mesh as soon as we know it's visible +				group->rebuildMesh(); +			}  		}  	} @@ -2802,6 +2807,11 @@ void LLPipeline::stateSort(LLCamera& camera, LLCullResult &result)  		{  			group->setVisible();  			stateSort(group, camera); + +			if (!sDelayVBUpdate) +			{ //rebuild mesh as soon as we know it's visible +				group->rebuildMesh(); +			}  		}  	} | 
