diff options
Diffstat (limited to 'linden/indra/newview/llviewerdisplay.cpp')
-rw-r--r-- | linden/indra/newview/llviewerdisplay.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/linden/indra/newview/llviewerdisplay.cpp b/linden/indra/newview/llviewerdisplay.cpp index 96591a2..4b352a4 100644 --- a/linden/indra/newview/llviewerdisplay.cpp +++ b/linden/indra/newview/llviewerdisplay.cpp | |||
@@ -675,7 +675,10 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot) | |||
675 | gSky.updateSky(); | 675 | gSky.updateSky(); |
676 | } | 676 | } |
677 | 677 | ||
678 | if(gUseWireframe) | 678 | // if(gUseWireframe) |
679 | // [RLVa:KB] - Checked: 2009-07-06 (RLVa-1.0.0c) | ||
680 | if ( (gUseWireframe) && ( (!rlv_handler_t::isEnabled()) || (!gRlvHandler.hasLockedAttachment()) ) ) | ||
681 | // [/RLVa:KB] | ||
679 | { | 682 | { |
680 | glClearColor(0.5f, 0.5f, 0.5f, 0.f); | 683 | glClearColor(0.5f, 0.5f, 0.5f, 0.f); |
681 | glClear(GL_COLOR_BUFFER_BIT); | 684 | glClear(GL_COLOR_BUFFER_BIT); |
@@ -802,7 +805,12 @@ void render_hud_attachments() | |||
802 | glh::matrix4f current_mod = glh_get_current_modelview(); | 805 | glh::matrix4f current_mod = glh_get_current_modelview(); |
803 | 806 | ||
804 | // clamp target zoom level to reasonable values | 807 | // clamp target zoom level to reasonable values |
805 | gAgent.mHUDTargetZoom = llclamp(gAgent.mHUDTargetZoom, 0.1f, 1.f); | 808 | // [RLVa:KB] - Checked: 2009-07-06 (RLVa-1.0.0c) |
809 | // TODO-RLVa: while hasLockedHUD() isn't slow this is called per frame so find a better way | ||
810 | gAgent.mHUDTargetZoom = llclamp(gAgent.mHUDTargetZoom, | ||
811 | ( (!rlv_handler_t::isEnabled()) || (!gRlvHandler.hasLockedHUD()) ) ? 0.1f : 0.85f, 1.f); | ||
812 | // [/RLVa:KB] | ||
813 | //gAgent.mHUDTargetZoom = llclamp(gAgent.mHUDTargetZoom, 0.1f, 1.f); | ||
806 | // smoothly interpolate current zoom level | 814 | // smoothly interpolate current zoom level |
807 | gAgent.mHUDCurZoom = lerp(gAgent.mHUDCurZoom, gAgent.mHUDTargetZoom, LLCriticalDamp::getInterpolant(0.03f)); | 815 | gAgent.mHUDCurZoom = lerp(gAgent.mHUDCurZoom, gAgent.mHUDTargetZoom, LLCriticalDamp::getInterpolant(0.03f)); |
808 | 816 | ||