summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorruslantproductengine <ruslantproductengine@lindenlab.com>2016-02-08 19:16:58 +0200
committerruslantproductengine <ruslantproductengine@lindenlab.com>2016-02-08 19:16:58 +0200
commitba2fccf6dc8adcf4abda06004a5f450b5d79856d (patch)
treec5003e347b6481b9f3f401fe3f98dac06558c4e0 /indra
parent510ca136794008f73895c72c07d4f93e345ced26 (diff)
MAINT-6069 Modify rendering cost calculation to use the currently active LoD
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/llvovolume.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp
index f8f613cf0f..c15bf4ecf3 100755
--- a/indra/newview/llvovolume.cpp
+++ b/indra/newview/llvovolume.cpp
@@ -3435,7 +3435,7 @@ U32 LLVOVolume::getRenderCost(texture_cost_t &textures) const
{
// base cost is dependent on mesh complexity
// note that 3 is the highest LOD as of the time of this coding.
- S32 size = gMeshRepo.getMeshSize(volume_params.getSculptID(),3);
+ S32 size = gMeshRepo.getMeshSize(volume_params.getSculptID(), getLOD());
if ( size > 0)
{
if (gMeshRepo.getSkinInfo(volume_params.getSculptID(), this))