]> git.sesse.net Git - movit/commitdiff
Remember to clear the needs_update flag on 1D textures after upload.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 5 Oct 2012 22:16:36 +0000 (00:16 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 5 Oct 2012 22:16:36 +0000 (00:16 +0200)
effect.cpp

index 8cdf236a1cad3f07e2a0b2645f22e23066f297b7..3128f0d657b74e851d18f506b94425a28cf6aa87 100644 (file)
@@ -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);