projects
/
movit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a93b0c9
)
Remember to clear the needs_update flag on 1D textures after upload.
author
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Fri, 5 Oct 2012 22:16:36 +0000
(
00:16
+0200)
committer
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Fri, 5 Oct 2012 22:16:36 +0000
(
00:16
+0200)
effect.cpp
patch
|
blob
|
history
diff --git
a/effect.cpp
b/effect.cpp
index
8cdf236
..
3128f0d
100644
(file)
--- 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);