From ef573511489e08bd89323c17e57e2d9bda578abd Mon Sep 17 00:00:00 2001 From: Graham Linden Date: Tue, 26 Feb 2019 17:58:52 -0800 Subject: 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). --- indra/newview/pipeline.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'indra/newview') 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; -- cgit v1.2.3