aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llnetmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llnetmap.cpp')
-rw-r--r--linden/indra/newview/llnetmap.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/linden/indra/newview/llnetmap.cpp b/linden/indra/newview/llnetmap.cpp
index 9c607e0..6fa6745 100644
--- a/linden/indra/newview/llnetmap.cpp
+++ b/linden/indra/newview/llnetmap.cpp
@@ -626,11 +626,7 @@ void LLNetMap::renderScaledPointGlobal( const LLVector3d& pos, const LLColor4U &
626 LLVector3 local_pos; 626 LLVector3 local_pos;
627 local_pos.setVec( pos - mObjectImageCenterGlobal ); 627 local_pos.setVec( pos - mObjectImageCenterGlobal );
628 628
629 // DEV-17370 - megaprims of size > 4096 cause lag. (go figger.) 629 S32 diameter_pixels = llround(2 * radius_meters * mObjectMapTPM);
630 const F32 MAX_RADIUS = 256.0f;
631 F32 radius_clamped = llmin(radius_meters, MAX_RADIUS);
632
633 S32 diameter_pixels = llround(2 * radius_clamped * mObjectMapTPM);
634 renderPoint( local_pos, color, diameter_pixels ); 630 renderPoint( local_pos, color, diameter_pixels );
635} 631}
636 632