projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58af54c
)
comment about uniforms
author
Brian
<brian@yutani.localnet.net>
Thu, 21 Dec 2006 18:21:26 +0000
(11:21 -0700)
committer
Brian
<brian@yutani.localnet.net>
Thu, 21 Dec 2006 18:21:26 +0000
(11:21 -0700)
src/mesa/shader/shader_api.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/shader_api.c
b/src/mesa/shader/shader_api.c
index 8daf585f7d6f03b058132672d2489c487cfb5d6b..1e282e7373a4a2fd34d27e606b699f44610f9cde 100644
(file)
--- a/
src/mesa/shader/shader_api.c
+++ b/
src/mesa/shader/shader_api.c
@@
-737,6
+737,10
@@
_mesa_get_uniform_location(GLcontext *ctx, GLuint program, const GLchar *name)
for (loc = 0; loc < shProg->Uniforms->NumParameters; loc++) {
const struct gl_program_parameter *u
= shProg->Uniforms->Parameters + loc;
+ /* XXX this is a temporary simplification / short-cut.
+ * We need to handle things like "e.c[0].b" as seen in the
+ * GLSL orange book, page 189.
+ */
if (u->Type == PROGRAM_UNIFORM && !strcmp(u->Name, name)) {
return loc;
}