X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=dither_effect.cpp;h=41ea9b432b80d3c94bf093a184f2632721dcbbcd;hp=72a38deb46490aac5e738a6bf19e48b674a6c45a;hb=833bbfaf5387f213e6a9c355b93aa622c74ec88f;hpb=a7bc6c9c002f26b0bb781a3475774eba5dab6acf diff --git a/dither_effect.cpp b/dither_effect.cpp index 72a38de..41ea9b4 100644 --- a/dither_effect.cpp +++ b/dither_effect.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include @@ -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,