aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerdisplay.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-10-18 17:58:27 -0700
committerMcCabe Maxsted2009-10-18 17:58:27 -0700
commite4b0e7c82d670081c071d8a3da31b5ec407b8e07 (patch)
tree9410962bbb582eedbec448139e217f2714050777 /linden/indra/newview/llviewerdisplay.cpp
parentStarted 1.3.0 branch (diff)
parentUpdated and added some Linux libs. (diff)
downloadmeta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.zip
meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.gz
meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.bz2
meta-impy-e4b0e7c82d670081c071d8a3da31b5ec407b8e07.tar.xz
Merged working branch of 1.2 into LL 1.23 merge
Diffstat (limited to 'linden/indra/newview/llviewerdisplay.cpp')
-rw-r--r--linden/indra/newview/llviewerdisplay.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/linden/indra/newview/llviewerdisplay.cpp b/linden/indra/newview/llviewerdisplay.cpp
index 977582b..3975290 100644
--- a/linden/indra/newview/llviewerdisplay.cpp
+++ b/linden/indra/newview/llviewerdisplay.cpp
@@ -719,7 +719,10 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
719 gSky.updateSky(); 719 gSky.updateSky();
720 } 720 }
721 721
722 if(gUseWireframe) 722// if(gUseWireframe)
723// [RLVa:KB] - Checked: 2009-07-06 (RLVa-1.0.0c)
724 if ( (gUseWireframe) && ( (!rlv_handler_t::isEnabled()) || (!gRlvHandler.hasLockedAttachment()) ) )
725// [/RLVa:KB]
723 { 726 {
724 glClearColor(0.5f, 0.5f, 0.5f, 0.f); 727 glClearColor(0.5f, 0.5f, 0.5f, 0.f);
725 glClear(GL_COLOR_BUFFER_BIT); 728 glClear(GL_COLOR_BUFFER_BIT);
@@ -878,7 +881,12 @@ void render_hud_attachments()
878 glh::matrix4f current_mod = glh_get_current_modelview(); 881 glh::matrix4f current_mod = glh_get_current_modelview();
879 882
880 // clamp target zoom level to reasonable values 883 // clamp target zoom level to reasonable values
881 gAgent.mHUDTargetZoom = llclamp(gAgent.mHUDTargetZoom, 0.1f, 1.f); 884// [RLVa:KB] - Checked: 2009-07-06 (RLVa-1.0.0c)
885 // TODO-RLVa: while hasLockedHUD() isn't slow this is called per frame so find a better way
886 gAgent.mHUDTargetZoom = llclamp(gAgent.mHUDTargetZoom,
887 ( (!rlv_handler_t::isEnabled()) || (!gRlvHandler.hasLockedHUD()) ) ? 0.1f : 0.85f, 1.f);
888// [/RLVa:KB]
889 //gAgent.mHUDTargetZoom = llclamp(gAgent.mHUDTargetZoom, 0.1f, 1.f);
882 // smoothly interpolate current zoom level 890 // smoothly interpolate current zoom level
883 gAgent.mHUDCurZoom = lerp(gAgent.mHUDCurZoom, gAgent.mHUDTargetZoom, LLCriticalDamp::getInterpolant(0.03f)); 891 gAgent.mHUDCurZoom = lerp(gAgent.mHUDCurZoom, gAgent.mHUDTargetZoom, LLCriticalDamp::getInterpolant(0.03f));
884 892