X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=resample_effect.cpp;h=792d86134ac54f875e5724bd63f715b7434d916c;hp=d136e1c477267af95182497c9f0c0d8d8da01b14;hb=27d066774adf38a774934c09746d638196d7d392;hpb=c783d084e831c1a2112b9c9309407a03b5a4cf20 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.