X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=resample_effect.cpp;h=a6774873daa3b5b58be975300f97839cc5562a56;hb=6aff20a0932dc9b668b77981390539dd710cf06d;hp=4af60de7d3c47c6089a560f0d23c2ce62594cd81;hpb=f62661c1bef3acac7b98631970700dfa5ac94768;p=movit diff --git a/resample_effect.cpp b/resample_effect.cpp index 4af60de..a677487 100644 --- a/resample_effect.cpp +++ b/resample_effect.cpp @@ -413,7 +413,8 @@ void SingleResamplePassEffect::set_gl_state(GLuint glsl_program_num, const strin // We specifically do not want mipmaps on the input texture; // they break minification. - glActiveTexture(GL_TEXTURE0); + Node *self = chain->find_node_for_effect(this); + glActiveTexture(chain->get_input_sampler(self, 0)); check_error(); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); check_error();