From: Steinar H. Gunderson Date: Wed, 10 Oct 2012 22:42:49 +0000 (+0200) Subject: Fix a bug where we would send too few parameters down to the refocus shader. X-Git-Tag: 1.0~322 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=17b9cf4ea40d560afed9e44b6039b02b605855e0;hp=df9cd763a9e433a2f3c9213e7c2342525a5de4cf Fix a bug where we would send too few parameters down to the refocus shader. --- diff --git a/deconvolution_sharpen_effect.cpp b/deconvolution_sharpen_effect.cpp index 6c319e1..d9d54aa 100644 --- a/deconvolution_sharpen_effect.cpp +++ b/deconvolution_sharpen_effect.cpp @@ -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)); }