diff options
author | Dave Parks <davep@lindenlab.com> | 2011-04-20 17:13:42 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-04-20 17:13:42 -0500 |
commit | 4bbfdd4c1fc18162960ba61fbdad40940a4cdd89 (patch) | |
tree | a6ae2d5c5c8787ca158b61c3119cdfed2d55963e /indra | |
parent | ecb8c4e718067b1fb567aa1182f213408ea8b463 (diff) |
SH-1417 Disable occlusion culling for reflection map for now.
Diffstat (limited to 'indra')
-rwxr-xr-x | indra/newview/pipeline.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index ec1f9173ff..df1e8d87af 100755 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -7881,6 +7881,10 @@ void LLPipeline::generateWaterReflection(LLCamera& camera_in) if (!LLViewerCamera::getInstance()->cameraUnderWater()) { //generate planar reflection map + + //disable occlusion culling for reflection map for now + S32 occlusion = LLPipeline::sUseOcclusion; + LLPipeline::sUseOcclusion = 0; gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE); glClearColor(0,0,0,0); mWaterRef.bindTarget(); @@ -7984,6 +7988,7 @@ void LLPipeline::generateWaterReflection(LLCamera& camera_in) glPopMatrix(); mWaterRef.flush(); glh_set_current_modelview(current); + LLPipeline::sUseOcclusion = occlusion; } camera.setOrigin(camera_in.getOrigin()); |