diff options
author | Jacek Antonelli | 2009-05-24 02:59:24 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-05-24 02:59:40 -0500 |
commit | b2627d927f1642bea84b92adfccd9403676e1341 (patch) | |
tree | 07f069e63cfa633b9bd0d07b4eecc229ef67f974 /linden/indra/newview/llviewerdisplay.cpp | |
parent | Second Life viewer sources 1.23.1-RC (diff) | |
download | meta-impy-b2627d927f1642bea84b92adfccd9403676e1341.zip meta-impy-b2627d927f1642bea84b92adfccd9403676e1341.tar.gz meta-impy-b2627d927f1642bea84b92adfccd9403676e1341.tar.bz2 meta-impy-b2627d927f1642bea84b92adfccd9403676e1341.tar.xz |
Second Life viewer sources 1.23.2-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewerdisplay.cpp | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/linden/indra/newview/llviewerdisplay.cpp b/linden/indra/newview/llviewerdisplay.cpp index 54c6f0a..977582b 100644 --- a/linden/indra/newview/llviewerdisplay.cpp +++ b/linden/indra/newview/llviewerdisplay.cpp | |||
@@ -514,7 +514,12 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot) | |||
514 | { //don't draw hud objects in this frame | 514 | { //don't draw hud objects in this frame |
515 | gPipeline.toggleRenderType(LLPipeline::RENDER_TYPE_HUD); | 515 | gPipeline.toggleRenderType(LLPipeline::RENDER_TYPE_HUD); |
516 | } | 516 | } |
517 | 517 | ||
518 | if (gPipeline.hasRenderType(LLPipeline::RENDER_TYPE_HUD_PARTICLES)) | ||
519 | { //don't draw hud particles in this frame | ||
520 | gPipeline.toggleRenderType(LLPipeline::RENDER_TYPE_HUD_PARTICLES); | ||
521 | } | ||
522 | |||
518 | //upkeep gl name pools | 523 | //upkeep gl name pools |
519 | LLGLNamePool::upkeepPools(); | 524 | LLGLNamePool::upkeepPools(); |
520 | 525 | ||
@@ -884,16 +889,26 @@ void render_hud_attachments() | |||
884 | hud_cam.setOrigin(-1.f,0,0); | 889 | hud_cam.setOrigin(-1.f,0,0); |
885 | hud_cam.setAxes(LLVector3(1,0,0), LLVector3(0,1,0), LLVector3(0,0,1)); | 890 | hud_cam.setAxes(LLVector3(1,0,0), LLVector3(0,1,0), LLVector3(0,0,1)); |
886 | LLViewerCamera::updateFrustumPlanes(hud_cam, TRUE); | 891 | LLViewerCamera::updateFrustumPlanes(hud_cam, TRUE); |
892 | |||
893 | bool render_particles = gPipeline.hasRenderType(LLPipeline::RENDER_TYPE_PARTICLES) && gSavedSettings.getBOOL("RenderHUDParticles"); | ||
887 | 894 | ||
888 | //only render hud objects | 895 | //only render hud objects |
889 | U32 mask = gPipeline.getRenderTypeMask(); | 896 | U32 mask = gPipeline.getRenderTypeMask(); |
897 | // turn off everything | ||
890 | gPipeline.setRenderTypeMask(0); | 898 | gPipeline.setRenderTypeMask(0); |
891 | if (!gPipeline.hasRenderType(LLPipeline::RENDER_TYPE_HUD)) | 899 | // turn on HUD |
900 | gPipeline.toggleRenderType(LLPipeline::RENDER_TYPE_HUD); | ||
901 | // turn on HUD particles | ||
902 | gPipeline.toggleRenderType(LLPipeline::RENDER_TYPE_HUD_PARTICLES); | ||
903 | |||
904 | // if particles are off, turn off hud-particles as well | ||
905 | if (!render_particles) | ||
892 | { | 906 | { |
893 | gPipeline.toggleRenderType(LLPipeline::RENDER_TYPE_HUD); | 907 | // turn back off HUD particles |
908 | gPipeline.toggleRenderType(LLPipeline::RENDER_TYPE_HUD_PARTICLES); | ||
894 | } | 909 | } |
895 | 910 | ||
896 | BOOL has_ui = gPipeline.hasRenderDebugFeatureMask(LLPipeline::RENDER_DEBUG_FEATURE_UI); | 911 | bool has_ui = gPipeline.hasRenderDebugFeatureMask(LLPipeline::RENDER_DEBUG_FEATURE_UI); |
897 | if (has_ui) | 912 | if (has_ui) |
898 | { | 913 | { |
899 | gPipeline.toggleRenderDebugFeature((void*) LLPipeline::RENDER_DEBUG_FEATURE_UI); | 914 | gPipeline.toggleRenderDebugFeature((void*) LLPipeline::RENDER_DEBUG_FEATURE_UI); |