]> git.sesse.net Git - movit/blobdiff - blur_effect.cpp
Make combine_two_samples() into a template instead of having manual rounding checks.
[movit] / blur_effect.cpp
index 6e5e843d5ce21b2608b4232716021472e1c65574..29e46b0583890f1e1f2c4b65ec130ec086f38bb9 100644 (file)
@@ -199,7 +199,7 @@ void SingleBlurPassEffect::set_gl_state(GLuint glsl_program_num, const string &p
                float pos1 = base_pos / (float)size;
                float pos2 = (base_pos + 1) / (float)size;
                float pos, total_weight;
-               combine_two_samples(w1, w2, pos1, pos2, size, COMBINE_DO_NOT_ROUND, &pos, &total_weight, NULL);
+               combine_two_samples(w1, w2, pos1, pos2, size, &pos, &total_weight, NULL);
 
                samples[2 * i + 0] = pos;
                samples[2 * i + 1] = total_weight;