From b9d8f717d299c388c0dd238d6315e5becd120406 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 18 Feb 2009 17:40:44 -0700 Subject: [PATCH] glsl: fix inequality in set_program_uniform() We were off by one when checking for too many uniform values. --- src/mesa/shader/shader_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2