aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerdisplay.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:44 -0500
committerJacek Antonelli2008-08-15 23:45:44 -0500
commitacfdcf2b1deeb04698174c78e8cb22b093445bb1 (patch)
tree811293650bcf81d01ea7c54d7c2cf263110aa329 /linden/indra/newview/llviewerdisplay.cpp
parentSecond Life viewer sources 1.20.2 (diff)
downloadmeta-impy-acfdcf2b1deeb04698174c78e8cb22b093445bb1.zip
meta-impy-acfdcf2b1deeb04698174c78e8cb22b093445bb1.tar.gz
meta-impy-acfdcf2b1deeb04698174c78e8cb22b093445bb1.tar.bz2
meta-impy-acfdcf2b1deeb04698174c78e8cb22b093445bb1.tar.xz
Second Life viewer sources 1.20.3
Diffstat (limited to 'linden/indra/newview/llviewerdisplay.cpp')
-rw-r--r--linden/indra/newview/llviewerdisplay.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/linden/indra/newview/llviewerdisplay.cpp b/linden/indra/newview/llviewerdisplay.cpp
index b4d6f27..72e3d5c 100644
--- a/linden/indra/newview/llviewerdisplay.cpp
+++ b/linden/indra/newview/llviewerdisplay.cpp
@@ -886,6 +886,11 @@ void render_ui_and_swap()
886 LLGLState::checkStates(); 886 LLGLState::checkStates();
887#endif 887#endif
888 888
889 glPushMatrix();
890 glLoadMatrixd(gGLLastModelView);
891 glh::matrix4f saved_view = glh_get_current_modelview();
892 glh_set_current_modelview(glh_copy_matrix(gGLLastModelView));
893
889 { 894 {
890 BOOL to_texture = gPipeline.canUseVertexShaders() && 895 BOOL to_texture = gPipeline.canUseVertexShaders() &&
891 LLPipeline::sRenderGlow && 896 LLPipeline::sRenderGlow &&
@@ -936,6 +941,9 @@ void render_ui_and_swap()
936 941
937 LLVertexBuffer::stopRender(); 942 LLVertexBuffer::stopRender();
938 } 943 }
944
945 glh_set_current_modelview(saved_view);
946 glPopMatrix();
939} 947}
940 948
941void render_ui_and_swap_if_needed() 949void render_ui_and_swap_if_needed()
@@ -1030,11 +1038,6 @@ void render_ui_3d()
1030 // so 3d elements requiring Z buffer are moved to LLDrawPoolHUD 1038 // so 3d elements requiring Z buffer are moved to LLDrawPoolHUD
1031 // 1039 //
1032 1040
1033 // Render selections
1034 //glDisableClientState(GL_COLOR_ARRAY);
1035 //glDisableClientState(GL_TEXTURE_COORD_ARRAY);
1036 //glDisableClientState(GL_NORMAL_ARRAY);
1037
1038 ///////////////////////////////////////////////////////////// 1041 /////////////////////////////////////////////////////////////
1039 // 1042 //
1040 // Render 2.5D elements (2D elements in the world) 1043 // Render 2.5D elements (2D elements in the world)