diff options
author | Brian Paul <[email protected]> | 2009-02-18 17:40:44 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-02-18 17:48:13 -0700 |
commit | b9d8f717d299c388c0dd238d6315e5becd120406 (patch) | |
tree | dc0c48e5e256d3a85964dc1f4e518d092bd74dc3 /src | |
parent | 897331ed1545b840aba429d749d283342417323f (diff) |
glsl: fix inequality in set_program_uniform()
We were off by one when checking for too many uniform values.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/shader/shader_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/shader_api.c b/src/mesa/shader/shader_api.c index 828d3f062ac..afd2c2af7de 100644 --- a/src/mesa/shader/shader_api.c +++ b/src/mesa/shader/shader_api.c @@ -1660,7 +1660,7 @@ set_program_uniform(GLcontext *ctx, struct gl_program *program, for (k = 0; k < count; k++) { GLfloat *uniformVal; - if (offset + k > slots) { + if (offset + k >= slots) { /* Extra array data is ignored */ break; } |