summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorHoward Stearns <howard.stearns@gmail.com>2022-05-24 09:33:06 -0700
committerHoward Stearns <howard.stearns@gmail.com>2022-05-24 09:33:06 -0700
commitf55c1ff40562a6f46a5508c7308d335a9aadb68f (patch)
tree777af66d687ff32f4b78ec57f883c4b55a648043 /indra
parent10f56db475316433586fee273cd442b143a31c08 (diff)
SL-15937 - forget the +1
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llvocache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp
index 89dab23399..3e5f1bdc7f 100644
--- a/indra/newview/llvocache.cpp
+++ b/indra/newview/llvocache.cpp
@@ -399,7 +399,7 @@ void LLVOCacheEntry::updateDebugSettings()
// a percentage of draw distance beyond which all objects outside of view frustum will be unloaded, regardless of pixel threshold
static LLCachedControl<F32> rear_max_radius_frac(gSavedSettings,"SceneLoadRearMaxRadiusFraction");
- const F32 min_radius_plus_one = sNearRadius;
+ const F32 min_radius_plus_one = sNearRadius + 1.f;
const F32 max_radius = rear_max_radius_frac * gAgentCamera.mDrawDistance;
const F32 clamped_max_radius = llclamp(max_radius, min_radius_plus_one, draw_radius); // [sNearRadius, mDrawDistance]
sRearFarRadius = min_radius_plus_one + ((clamped_max_radius - min_radius_plus_one) * adjust_factor);