]> git.sesse.net Git - movit/commitdiff
Fix a bug where we would send too few parameters down to the refocus shader.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 10 Oct 2012 22:42:49 +0000 (00:42 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 10 Oct 2012 22:42:49 +0000 (00:42 +0200)
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));
 }
 }