From: Steinar H. Gunderson Date: Fri, 5 Oct 2012 22:16:36 +0000 (+0200) Subject: Remember to clear the needs_update flag on 1D textures after upload. X-Git-Tag: 1.0~380 X-Git-Url: https://git.sesse.net/?p=movit;a=commitdiff_plain;h=f6acc0d1d488567e651220ffd327591c1443f49b Remember to clear the needs_update flag on 1D textures after upload. --- diff --git a/effect.cpp b/effect.cpp index 8cdf236..3128f0d 100644 --- a/effect.cpp +++ b/effect.cpp @@ -240,6 +240,7 @@ void Effect::set_gl_state(GLuint glsl_program_num, const std::string& prefix, un if (it->second.needs_update) { glTexImage1D(GL_TEXTURE_1D, 0, GL_LUMINANCE16F_ARB, it->second.size, 0, GL_LUMINANCE, GL_FLOAT, it->second.values); check_error(); + it->second.needs_update = false; } set_uniform_int(glsl_program_num, prefix, it->first, *sampler_num);