diff options
| -rw-r--r-- | indra/newview/llvovolume.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index e23b54f60c..93062b7a2e 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -5429,8 +5429,8 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group)  	U32 useage = group->getSpatialPartition()->mBufferUsage; -	LLCachedControl<S32> max_vbo_size(gSavedSettings, "RenderMaxVBOSize", 512); -	LLCachedControl<S32> max_node_size(gSavedSettings, "RenderMaxNodeSize", 65536); +	static LLCachedControl<S32> max_vbo_size(gSavedSettings, "RenderMaxVBOSize", 512); +	static LLCachedControl<S32> max_node_size(gSavedSettings, "RenderMaxNodeSize", 65536);  	U32 max_vertices = (max_vbo_size * 1024)/LLVertexBuffer::calcVertexSize(group->getSpatialPartition()->mVertexDataMask);  	U32 max_total = (max_node_size * 1024) / LLVertexBuffer::calcVertexSize(group->getSpatialPartition()->mVertexDataMask);  	max_vertices = llmin(max_vertices, (U32) 65535); @@ -6195,7 +6195,7 @@ U32 LLVolumeGeometryManager::genDrawInfo(LLSpatialGroup* group, U32 mask, LLFace  #endif  	//calculate maximum number of vertices to store in a single buffer -	LLCachedControl<S32> max_vbo_size(gSavedSettings, "RenderMaxVBOSize", 512); +	static LLCachedControl<S32> max_vbo_size(gSavedSettings, "RenderMaxVBOSize", 512);  	U32 max_vertices = (max_vbo_size * 1024)/LLVertexBuffer::calcVertexSize(group->getSpatialPartition()->mVertexDataMask);  	max_vertices = llmin(max_vertices, (U32) 65535); | 
