From f6acc0d1d488567e651220ffd327591c1443f49b Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 6 Oct 2012 00:16:36 +0200 Subject: [PATCH] Remember to clear the needs_update flag on 1D textures after upload. --- effect.cpp | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.2