summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-02-26 17:58:52 -0800
committerGraham Linden <graham@lindenlab.com>2019-02-26 17:58:52 -0800
commitef573511489e08bd89323c17e57e2d9bda578abd (patch)
tree2938448d0fa294c84fdd53d52ae902f61a4b4dd4 /indra/newview
parent4f1e39d4a4e75326a469576c16488bc62396c618 (diff)
SL-10566 part the second
Re-enable occlusion for the refracted object culling for the distortion map (was bloating scene by 3k draw calls when disabled for that pass).
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/pipeline.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index 9250638e5c..f73d79776d 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -9593,6 +9593,10 @@ void LLPipeline::generateWaterReflection(LLCamera& camera_in)
set_current_modelview(current);
}
+ // SL-10566 re-enable occlusion for refracted object set
+ // this bloated the scene by 3k calls when disabled
+ LLPipeline::sUseOcclusion = occlusion;
+
camera.setOrigin(camera_in.getOrigin());
//render distortion map
static bool last_update = true;