diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index 8be8823b0e24be642dc7464d09dd439d0744c9eb..9a6f0d5fd36b8bb32313a22e1a580602f464252a 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -9369,32 +9369,32 @@ void LLPipeline::generateWaterReflection(LLCamera& camera_in)
 					gPipeline.popRenderTypeMask();
 				}
 
-				gPipeline.pushRenderTypeMask();
-
-				clearRenderTypeMask(LLPipeline::RENDER_TYPE_WATER,
-					LLPipeline::RENDER_TYPE_VOIDWATER,
-					LLPipeline::RENDER_TYPE_GROUND,
-					LLPipeline::RENDER_TYPE_SKY,
-					LLPipeline::RENDER_TYPE_CLOUDS,
-					LLPipeline::END_RENDER_TYPES);	
-
-				if (reflection_detail > WATER_REFLECT_MINIMAL)
-				{ //mask out selected geometry based on reflection detail
-					if (reflection_detail < WATER_REFLECT_EVERYTHING)
-					{
-						clearRenderTypeMask(LLPipeline::RENDER_TYPE_PARTICLES, END_RENDER_TYPES);
-						if (reflection_detail < WATER_REFLECT_AVATARS)
-						{
+                gPipeline.pushRenderTypeMask();
+
+                clearRenderTypeMask(LLPipeline::RENDER_TYPE_WATER,
+                    LLPipeline::RENDER_TYPE_VOIDWATER,
+                    LLPipeline::RENDER_TYPE_GROUND,
+                    LLPipeline::RENDER_TYPE_SKY,
+                    LLPipeline::RENDER_TYPE_CLOUDS,
+                    LLPipeline::END_RENDER_TYPES);
+
+                if (reflection_detail > WATER_REFLECT_MINIMAL)
+                { //mask out selected geometry based on reflection detail
+                    if (reflection_detail < WATER_REFLECT_EVERYTHING)
+                    {
+                        clearRenderTypeMask(LLPipeline::RENDER_TYPE_PARTICLES, END_RENDER_TYPES);
+                        if (reflection_detail < WATER_REFLECT_AVATARS)
+                        {
                             clearRenderTypeMask(LLPipeline::RENDER_TYPE_AVATAR, LLPipeline::RENDER_TYPE_CONTROL_AV, END_RENDER_TYPES);
-							if (reflection_detail < WATER_REFLECT_STATIC_OBJECTS)
-							{
-								clearRenderTypeMask(LLPipeline::RENDER_TYPE_VOLUME, END_RENDER_TYPES);
-							}
-						}
-					}
+                            if (reflection_detail < WATER_REFLECT_STATIC_OBJECTS)
+                            {
+                                clearRenderTypeMask(LLPipeline::RENDER_TYPE_VOLUME, END_RENDER_TYPES);
+                            }
+                        }
+                    }
 
                     LLGLUserClipPlane clip_plane(plane, mReflectionModelView, saved_projection);
-					LLGLDisable cull(GL_CULL_FACE);
+                    LLGLDisable cull(GL_CULL_FACE);
                     updateCull(camera, mReflectedObjects, -water_clip, &plane);
                     stateSort(camera, mReflectedObjects);
                     renderGeom(camera);