From 27d066774adf38a774934c09746d638196d7d392 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 3 Apr 2014 22:40:23 +0200 Subject: [PATCH] Re-add resample kernel normalization, which was broken by accident. --- resample_effect.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/resample_effect.cpp b/resample_effect.cpp index d136e1c..792d861 100644 --- a/resample_effect.cpp +++ b/resample_effect.cpp @@ -423,7 +423,6 @@ void SingleResamplePassEffect::update_texture(GLuint glsl_program_num, const str // Normalize so that the sum becomes one. Note that we do it twice; // this sometimes helps a tiny little bit when we have many samples. -#if 0 for (int normalize_pass = 0; normalize_pass < 2; ++normalize_pass) { double sum = 0.0; for (int i = 0; i < src_bilinear_samples; ++i) { @@ -434,7 +433,6 @@ void SingleResamplePassEffect::update_texture(GLuint glsl_program_num, const str fp16_to_fp64(bilinear_weights_fp16_ptr[i * 2 + 0]) / sum); } } -#endif } // Encode as a two-component texture. Note the GL_REPEAT. -- 2.39.2