]> git.sesse.net Git - movit/blobdiff - dither_effect.cpp
In ResampleEffect, optimize the bilinear weights on a global scale.
[movit] / dither_effect.cpp
index 17c577d4cdacc3ae44a4c79015d46c6e888389d6..41ea9b432b80d3c94bf093a184f2632721dcbbcd 100644 (file)
@@ -111,7 +111,7 @@ void DitherEffect::set_gl_state(GLuint glsl_program_num, const string &prefix, u
        check_error();
 
        set_uniform_int(glsl_program_num, prefix, "dither_tex", *sampler_num);
-       ++sampler_num;
+       ++*sampler_num;
 
        // In theory, we should adjust for the texel centers that have moved here as well,
        // but since we use GL_NEAREST and we don't really care a lot what texel we sample,