aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerdisplay.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:54 -0500
committerJacek Antonelli2008-08-15 23:44:54 -0500
commitb2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch)
tree3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/newview/llviewerdisplay.cpp
parentSecond Life viewer sources 1.14.0.1 (diff)
downloadmeta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2
meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz
Second Life viewer sources 1.15.0.2
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llviewerdisplay.cpp23
1 files changed, 9 insertions, 14 deletions
diff --git a/linden/indra/newview/llviewerdisplay.cpp b/linden/indra/newview/llviewerdisplay.cpp
index 071b699..c2ef30a 100644
--- a/linden/indra/newview/llviewerdisplay.cpp
+++ b/linden/indra/newview/llviewerdisplay.cpp
@@ -4,6 +4,7 @@
4 * 4 *
5 * Copyright (c) 2004-2007, Linden Research, Inc. 5 * Copyright (c) 2004-2007, Linden Research, Inc.
6 * 6 *
7 * Second Life Viewer Source Code
7 * The source code in this file ("Source Code") is provided by Linden Lab 8 * The source code in this file ("Source Code") is provided by Linden Lab
8 * to you under the terms of the GNU General Public License, version 2.0 9 * to you under the terms of the GNU General Public License, version 2.0
9 * ("GPL"), unless you have obtained a separate licensing agreement 10 * ("GPL"), unless you have obtained a separate licensing agreement
@@ -157,12 +158,7 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield)
157 LLGLDepthTest gls_depth(GL_TRUE, GL_TRUE, GL_LEQUAL); 158 LLGLDepthTest gls_depth(GL_TRUE, GL_TRUE, GL_LEQUAL);
158 159
159 // No clue where this is getting unset, but safe enough to reset it here. 160 // No clue where this is getting unset, but safe enough to reset it here.
160 for (S32 j = 7; j >=0; j--) 161 LLGLState::resetTextureStates();
161 {
162 glActiveTextureARB(GL_TEXTURE0_ARB+j);
163 glClientActiveTextureARB(GL_TEXTURE0_ARB+j);
164 j == 0 ? glEnable(GL_TEXTURE_2D) : glDisable(GL_TEXTURE_2D);
165 }
166 162
167#ifndef LL_RELEASE_FOR_DOWNLOAD 163#ifndef LL_RELEASE_FOR_DOWNLOAD
168 LLGLState::checkStates(); 164 LLGLState::checkStates();
@@ -277,7 +273,8 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield)
277 gViewerWindow->setShowProgress(TRUE); 273 gViewerWindow->setShowProgress(TRUE);
278 gViewerWindow->setProgressPercent(0); 274 gViewerWindow->setProgressPercent(0);
279 gAgent.setTeleportState( LLAgent::TELEPORT_REQUESTED ); 275 gAgent.setTeleportState( LLAgent::TELEPORT_REQUESTED );
280 gAgent.setTeleportMessage("Requesting Teleport..."); 276 gAgent.setTeleportMessage(
277 LLAgent::sTeleportProgressMessages["requesting"]);
281 break; 278 break;
282 279
283 case LLAgent::TELEPORT_REQUESTED: 280 case LLAgent::TELEPORT_REQUESTED:
@@ -298,7 +295,8 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield)
298 gViewerWindow->setProgressCancelButtonVisible(FALSE, "Cancel"); 295 gViewerWindow->setProgressCancelButtonVisible(FALSE, "Cancel");
299 gViewerWindow->setProgressPercent(75.f); 296 gViewerWindow->setProgressPercent(75.f);
300 gAgent.setTeleportState( LLAgent::TELEPORT_ARRIVING ); 297 gAgent.setTeleportState( LLAgent::TELEPORT_ARRIVING );
301 gAgent.setTeleportMessage("Arriving..."); 298 gAgent.setTeleportMessage(
299 LLAgent::sTeleportProgressMessages["arriving"]);
302 gImageList.mForceResetTextureStats = TRUE; 300 gImageList.mForceResetTextureStats = TRUE;
303 break; 301 break;
304 302
@@ -601,11 +599,6 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield)
601 gPipeline.stateSort(hud_cam); 599 gPipeline.stateSort(hud_cam);
602 } 600 }
603 601
604 if (LLVertexBuffer::sEnableVBOs)
605 {
606 LLImageGL::sBoundTextureMemory += LLVertexBuffer::sAllocatedBytes;
607 }
608
609 gPipeline.renderGeom(hud_cam); 602 gPipeline.renderGeom(hud_cam);
610 603
611 //restore type mask 604 //restore type mask
@@ -824,8 +817,10 @@ void render_ui_2d()
824 glPushMatrix(); 817 glPushMatrix();
825 S32 half_width = (gViewerWindow->getWindowWidth() / 2); 818 S32 half_width = (gViewerWindow->getWindowWidth() / 2);
826 S32 half_height = (gViewerWindow->getWindowHeight() / 2); 819 S32 half_height = (gViewerWindow->getWindowHeight() / 2);
820 glScalef(LLUI::sGLScaleFactor.mV[0], LLUI::sGLScaleFactor.mV[1], 1.f);
827 glTranslatef((F32)half_width, (F32)half_height, 0.f); 821 glTranslatef((F32)half_width, (F32)half_height, 0.f);
828 glScalef(gAgent.getAvatarObject()->mHUDCurZoom, gAgent.getAvatarObject()->mHUDCurZoom, gAgent.getAvatarObject()->mHUDCurZoom); 822 F32 zoom = gAgent.getAvatarObject()->mHUDCurZoom;
823 glScalef(zoom,zoom,1.f);
829 glColor4fv(LLColor4::white.mV); 824 glColor4fv(LLColor4::white.mV);
830 gl_rect_2d(-half_width, half_height, half_width, -half_height, FALSE); 825 gl_rect_2d(-half_width, half_height, half_width, -half_height, FALSE);
831 glPopMatrix(); 826 glPopMatrix();