X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=resample_effect.cpp;h=50b7c6bc5c4730fc6bb25cd18c96a446c8f02986;hp=b988e5af8eb656d2110352f7339e090d799c95c7;hb=ddf71f853e64c3912eed4ab98bfe7503826ce8e1;hpb=818a3ca926f2acb93157b386fb1dcb511e6b56c4 diff --git a/resample_effect.cpp b/resample_effect.cpp index b988e5a..50b7c6b 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();