aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerdisplay.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llviewerdisplay.cpp27
1 files changed, 1 insertions, 26 deletions
diff --git a/linden/indra/newview/llviewerdisplay.cpp b/linden/indra/newview/llviewerdisplay.cpp
index 5e1cf80..5316337 100644
--- a/linden/indra/newview/llviewerdisplay.cpp
+++ b/linden/indra/newview/llviewerdisplay.cpp
@@ -128,11 +128,6 @@ void display_startup()
128 return; 128 return;
129 } 129 }
130 130
131 gPipeline.updateGL();
132
133 // Update images?
134 gImageList.updateImages(0.01f);
135
136 LLGLSDefault gls_default; 131 LLGLSDefault gls_default;
137 132
138 // Required for HTML update in login screen 133 // Required for HTML update in login screen
@@ -604,9 +599,6 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
604 gPipeline.updateGeom(max_geom_update_time); 599 gPipeline.updateGeom(max_geom_update_time);
605 stop_glerror(); 600 stop_glerror();
606 601
607 gPipeline.updateGL();
608 stop_glerror();
609
610 gFrameStats.start(LLFrameStats::UPDATE_CULL); 602 gFrameStats.start(LLFrameStats::UPDATE_CULL);
611 S32 water_clip = 0; 603 S32 water_clip = 0;
612 if ((LLViewerShaderMgr::instance()->getVertexShaderLevel(LLViewerShaderMgr::SHADER_ENVIRONMENT) > 1) && 604 if ((LLViewerShaderMgr::instance()->getVertexShaderLevel(LLViewerShaderMgr::SHADER_ENVIRONMENT) > 1) &&
@@ -697,8 +689,6 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
697 gPipeline.generateSunShadow(*LLViewerCamera::getInstance()); 689 gPipeline.generateSunShadow(*LLViewerCamera::getInstance());
698 } 690 }
699 691
700 LLVertexBuffer::unbind(); // KL
701
702 LLGLState::checkStates(); 692 LLGLState::checkStates();
703 LLGLState::checkTextureChannels(); 693 LLGLState::checkTextureChannels();
704 LLGLState::checkClientArrays(); 694 LLGLState::checkClientArrays();
@@ -729,7 +719,6 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
729 { 719 {
730 LLAppViewer::instance()->pingMainloopTimeout("Display:Imagery"); 720 LLAppViewer::instance()->pingMainloopTimeout("Display:Imagery");
731 gPipeline.generateWaterReflection(*LLViewerCamera::getInstance()); 721 gPipeline.generateWaterReflection(*LLViewerCamera::getInstance());
732 gPipeline.generateHighlight(*LLViewerCamera::getInstance());
733 } 722 }
734 723
735 ////////////////////////////////////// 724 //////////////////////////////////////
@@ -754,9 +743,6 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
754 743
755 const F32 max_image_decode_time = llmin(0.005f, 0.005f*10.f*gFrameIntervalSeconds); // 50 ms/second decode time (no more than 5ms/frame) 744 const F32 max_image_decode_time = llmin(0.005f, 0.005f*10.f*gFrameIntervalSeconds); // 50 ms/second decode time (no more than 5ms/frame)
756 gImageList.updateImages(max_image_decode_time); 745 gImageList.updateImages(max_image_decode_time);
757
758 //remove dead textures from GL KL is it req?
759 LLImageGL::deleteDeadTextures();
760 stop_glerror(); 746 stop_glerror();
761 } 747 }
762 llpushcallstacks ; 748 llpushcallstacks ;
@@ -911,7 +897,7 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
911 /// and then display it again with compositor effects. 897 /// and then display it again with compositor effects.
912 /// Using render to texture would be faster/better, but I don't have a 898 /// Using render to texture would be faster/better, but I don't have a
913 /// grasp of their full display stack just yet. 899 /// grasp of their full display stack just yet.
914 gPostProcess->apply(gViewerWindow->getWindowDisplayWidth(), gViewerWindow->getWindowDisplayHeight()); // KL 900 // gPostProcess->apply(gViewerWindow->getWindowDisplayWidth(), gViewerWindow->getWindowDisplayHeight());
915 901
916 if (LLPipeline::sRenderDeferred && !LLPipeline::sUnderWaterRender) 902 if (LLPipeline::sRenderDeferred && !LLPipeline::sUnderWaterRender)
917 { 903 {
@@ -927,8 +913,6 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
927 render_ui(); 913 render_ui();
928 } 914 }
929 915
930 gPipeline.rebuildGroups();
931
932 LLSpatialGroup::sNoDelete = FALSE; 916 LLSpatialGroup::sNoDelete = FALSE;
933 } 917 }
934 918
@@ -1015,15 +999,6 @@ void render_hud_attachments()
1015 gPipeline.toggleRenderType(LLPipeline::RENDER_TYPE_VOLUME); 999 gPipeline.toggleRenderType(LLPipeline::RENDER_TYPE_VOLUME);
1016 gPipeline.toggleRenderType(LLPipeline::RENDER_TYPE_ALPHA); 1000 gPipeline.toggleRenderType(LLPipeline::RENDER_TYPE_ALPHA);
1017 gPipeline.toggleRenderType(LLPipeline::RENDER_TYPE_FULLBRIGHT); 1001 gPipeline.toggleRenderType(LLPipeline::RENDER_TYPE_FULLBRIGHT);
1018 gPipeline.toggleRenderType(LLPipeline::RENDER_TYPE_PASS_ALPHA);
1019 gPipeline.toggleRenderType(LLPipeline::RENDER_TYPE_PASS_ALPHA_MASK);
1020 gPipeline.toggleRenderType(LLPipeline::RENDER_TYPE_PASS_BUMP);
1021 gPipeline.toggleRenderType(LLPipeline::RENDER_TYPE_PASS_FULLBRIGHT);
1022 gPipeline.toggleRenderType(LLPipeline::RENDER_TYPE_PASS_FULLBRIGHT_ALPHA_MASK);
1023 gPipeline.toggleRenderType(LLPipeline::RENDER_TYPE_PASS_FULLBRIGHT_SHINY);
1024 gPipeline.toggleRenderType(LLPipeline::RENDER_TYPE_PASS_SHINY);
1025 gPipeline.toggleRenderType(LLPipeline::RENDER_TYPE_PASS_INVISIBLE);
1026 gPipeline.toggleRenderType(LLPipeline::RENDER_TYPE_PASS_INVISI_SHINY);
1027 1002
1028 gPipeline.stateSort(hud_cam, result); 1003 gPipeline.stateSort(hud_cam, result);
1029 1004