diff options
author | Brian <[email protected]> | 2006-12-21 11:21:26 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2006-12-21 11:21:26 -0700 |
commit | 2905385744a385bc8bc6cbd2d749673c93380462 (patch) | |
tree | 3e8c4a170fc03133a767634037a324dbe6d40017 /src | |
parent | 58af54c76773bd9fc96d43fc209a0dc4db934ca7 (diff) |
comment about uniforms
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/shader/shader_api.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/shader/shader_api.c b/src/mesa/shader/shader_api.c index 8daf585f7d6..1e282e7373a 100644 --- 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; } |