]> git.sesse.net Git - movit/blobdiff - deconvolution_sharpen_effect.cpp
Fix a bug where we would send too few parameters down to the refocus shader.
[movit] / deconvolution_sharpen_effect.cpp
index 6c319e1b0feceeef04766a232a84e0b759a5bf58..d9d54aa0a30d4dcfe1718659a1aecdbab754019e 100644 (file)
@@ -450,5 +450,5 @@ void DeconvolutionSharpenEffect::set_gl_state(GLuint glsl_program_num, const std
                }
        }
 
-       set_uniform_vec4_array(glsl_program_num, prefix, "samples", samples, R * R);
+       set_uniform_vec4_array(glsl_program_num, prefix, "samples", samples, (R + 1) * (R + 1));
 }