aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerdisplay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llviewerdisplay.cpp')
-rw-r--r--linden/indra/newview/llviewerdisplay.cpp24
1 files changed, 14 insertions, 10 deletions
diff --git a/linden/indra/newview/llviewerdisplay.cpp b/linden/indra/newview/llviewerdisplay.cpp
index 627609b..4db26a0 100644
--- a/linden/indra/newview/llviewerdisplay.cpp
+++ b/linden/indra/newview/llviewerdisplay.cpp
@@ -248,8 +248,11 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
248 248
249 gViewerWindow->checkSettings(); 249 gViewerWindow->checkSettings();
250 250
251 LLAppViewer::instance()->pingMainloopTimeout("Display:Pick"); 251 {
252 gViewerWindow->performPick(); 252 LLFastTimer ftm(LLFastTimer::FTM_PICK);
253 LLAppViewer::instance()->pingMainloopTimeout("Display:Pick");
254 gViewerWindow->performPick();
255 }
253 256
254 257
255 LLAppViewer::instance()->pingMainloopTimeout("Display:CheckStates"); 258 LLAppViewer::instance()->pingMainloopTimeout("Display:CheckStates");
@@ -373,6 +376,7 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
373 gAgent.setTeleportMessage( 376 gAgent.setTeleportMessage(
374 LLAgent::sTeleportProgressMessages["arriving"]); 377 LLAgent::sTeleportProgressMessages["arriving"]);
375 gImageList.mForceResetTextureStats = TRUE; 378 gImageList.mForceResetTextureStats = TRUE;
379 gAgent.resetView(TRUE, TRUE);
376 break; 380 break;
377 381
378 case LLAgent::TELEPORT_ARRIVING: 382 case LLAgent::TELEPORT_ARRIVING:
@@ -690,7 +694,7 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
690 // glMatrixMode(GL_MODELVIEW); 694 // glMatrixMode(GL_MODELVIEW);
691 // glPushMatrix(); 695 // glPushMatrix();
692 // { 696 // {
693 // LLGLSNoTexture gls_no_texture; 697 // gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
694 698
695 // glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_TRUE); 699 // glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_TRUE);
696 // glLoadIdentity(); 700 // glLoadIdentity();
@@ -997,8 +1001,8 @@ void render_ui()
997 1001
998void renderCoordinateAxes() 1002void renderCoordinateAxes()
999{ 1003{
1000 LLGLSNoTexture gls_no_texture; 1004 gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
1001 gGL.begin(LLVertexBuffer::LINES); 1005 gGL.begin(LLRender::LINES);
1002 gGL.color3f(1.0f, 0.0f, 0.0f); // i direction = X-Axis = red 1006 gGL.color3f(1.0f, 0.0f, 0.0f); // i direction = X-Axis = red
1003 gGL.vertex3f(0.0f, 0.0f, 0.0f); 1007 gGL.vertex3f(0.0f, 0.0f, 0.0f);
1004 gGL.vertex3f(2.0f, 0.0f, 0.0f); 1008 gGL.vertex3f(2.0f, 0.0f, 0.0f);
@@ -1048,10 +1052,10 @@ void renderCoordinateAxes()
1048void draw_axes() 1052void draw_axes()
1049{ 1053{
1050 LLGLSUIDefault gls_ui; 1054 LLGLSUIDefault gls_ui;
1051 LLGLSNoTexture gls_no_texture; 1055 gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
1052 // A vertical white line at origin 1056 // A vertical white line at origin
1053 LLVector3 v = gAgent.getPositionAgent(); 1057 LLVector3 v = gAgent.getPositionAgent();
1054 gGL.begin(LLVertexBuffer::LINES); 1058 gGL.begin(LLRender::LINES);
1055 gGL.color3f(1.0f, 1.0f, 1.0f); 1059 gGL.color3f(1.0f, 1.0f, 1.0f);
1056 gGL.vertex3f(0.0f, 0.0f, 0.0f); 1060 gGL.vertex3f(0.0f, 0.0f, 0.0f);
1057 gGL.vertex3f(0.0f, 0.0f, 40.0f); 1061 gGL.vertex3f(0.0f, 0.0f, 40.0f);
@@ -1194,7 +1198,7 @@ void render_disconnected_background()
1194 raw->expandToPowerOfTwo(); 1198 raw->expandToPowerOfTwo();
1195 gDisconnectedImagep->createGLTexture(0, raw); 1199 gDisconnectedImagep->createGLTexture(0, raw);
1196 gStartImageGL = gDisconnectedImagep; 1200 gStartImageGL = gDisconnectedImagep;
1197 LLImageGL::unbindTexture(0, GL_TEXTURE_2D); 1201 gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
1198 } 1202 }
1199 1203
1200 // Make sure the progress view always fills the entire window. 1204 // Make sure the progress view always fills the entire window.
@@ -1213,10 +1217,10 @@ void render_disconnected_background()
1213 const LLVector2& display_scale = gViewerWindow->getDisplayScale(); 1217 const LLVector2& display_scale = gViewerWindow->getDisplayScale();
1214 glScalef(display_scale.mV[VX], display_scale.mV[VY], 1.f); 1218 glScalef(display_scale.mV[VX], display_scale.mV[VY], 1.f);
1215 1219
1216 LLViewerImage::bindTexture(gDisconnectedImagep); 1220 gGL.getTexUnit(0)->bind(gDisconnectedImagep);
1217 gGL.color4f(1.f, 1.f, 1.f, 1.f); 1221 gGL.color4f(1.f, 1.f, 1.f, 1.f);
1218 gl_rect_2d_simple_tex(width, height); 1222 gl_rect_2d_simple_tex(width, height);
1219 LLImageGL::unbindTexture(0, GL_TEXTURE_2D); 1223 gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
1220 } 1224 }
1221 glPopMatrix(); 1225 glPopMatrix();
1222 } 1226 }