glsl: fix inequality in set_program_uniform()

We were off by one when checking for too many uniform values.
This commit is contained in:
Brian Paul 2009-02-18 17:40:44 -07:00
parent 897331ed15
commit b9d8f717d2

View file

@ -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;
}