diff options
Diffstat (limited to 'linden/indra/newview/pipeline.cpp')
-rw-r--r-- | linden/indra/newview/pipeline.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/linden/indra/newview/pipeline.cpp b/linden/indra/newview/pipeline.cpp index 61ad8b7..ae7461c 100644 --- a/linden/indra/newview/pipeline.cpp +++ b/linden/indra/newview/pipeline.cpp | |||
@@ -2269,18 +2269,12 @@ void LLPipeline::postSort(LLCamera& camera) | |||
2269 | const S32 bin_count = 1024*8; | 2269 | const S32 bin_count = 1024*8; |
2270 | 2270 | ||
2271 | static LLCullResult::drawinfo_list_t alpha_bins[bin_count]; | 2271 | static LLCullResult::drawinfo_list_t alpha_bins[bin_count]; |
2272 | static U32 bin_size[bin_count]; | ||
2273 | 2272 | ||
2274 | //clear one bin per frame to avoid memory bloat | 2273 | //clear one bin per frame to avoid memory bloat |
2275 | static S32 clear_idx = 0; | 2274 | static S32 clear_idx = 0; |
2276 | clear_idx = (1+clear_idx)%bin_count; | 2275 | clear_idx = (1+clear_idx)%bin_count; |
2277 | alpha_bins[clear_idx].clear(); | 2276 | alpha_bins[clear_idx].clear(); |
2278 | 2277 | ||
2279 | for (U32 j = 0; j < bin_count; j++) | ||
2280 | { | ||
2281 | bin_size[j] = 0; | ||
2282 | } | ||
2283 | |||
2284 | //build render map | 2278 | //build render map |
2285 | for (LLCullResult::sg_list_t::iterator i = sCull->beginVisibleGroups(); i != sCull->endVisibleGroups(); ++i) | 2279 | for (LLCullResult::sg_list_t::iterator i = sCull->beginVisibleGroups(); i != sCull->endVisibleGroups(); ++i) |
2286 | { | 2280 | { |
@@ -5956,8 +5950,6 @@ void LLPipeline::generateWaterReflection(LLCamera& camera_in) | |||
5956 | 5950 | ||
5957 | stop_glerror(); | 5951 | stop_glerror(); |
5958 | 5952 | ||
5959 | LLVector3 origin = camera.getOrigin(); | ||
5960 | |||
5961 | glPushMatrix(); | 5953 | glPushMatrix(); |
5962 | 5954 | ||
5963 | mat.set_scale(glh::vec3f(1,1,-1)); | 5955 | mat.set_scale(glh::vec3f(1,1,-1)); |