summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-05-05 12:14:29 -0700
committerBrian Paul <brianp@vmware.com>2009-06-17 11:30:02 -0600
commit23bee67ca750f91e9a1b2b3b5cceb2da0bd962f3 (patch)
treeca77985f39dd65360c4b5a0a993be01e4648fffc /src
parent199c80c6667737ef4cbb9e3cd6a737e4d7c8e85a (diff)
Flag GLSL programs as depending on constant state when they use uniforms.
This is not a cherry-pick, as it got fixed in master with the _NEW_PROGRAM_CONSTANTS change. Fixes bad rendering with various GLSL programs idr and I have been writing.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/slang/slang_link.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_link.c b/src/mesa/shader/slang/slang_link.c
index 152e97a668d..0cfd09dd662 100644
--- a/src/mesa/shader/slang/slang_link.c
+++ b/src/mesa/shader/slang/slang_link.c
@@ -249,6 +249,11 @@ link_uniform_vars(GLcontext *ctx,
_mesa_append_uniform(shProg->Uniforms, p->Name, prog->Target, i);
if (uniform)
uniform->Initialized = p->Initialized;
+
+ /* Add the flag indicating that the program is dependent on constant
+ * state.
+ */
+ prog->Parameters->StateFlags |= _NEW_PROGRAM;
}
/* The samplerMap[] table we build here is used to remap/re-index