From 68d412f31cbf028b1faa1c7fd95b849a95bb762c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 22 May 2009 15:35:49 -0600 Subject: mesa: add missing update_min() call in update_arrays() --- src/mesa/main/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index d5bdb63a97b..7b41b8f4da4 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -196,7 +196,7 @@ update_arrays( GLcontext *ctx ) if (ctx->VertexProgram._Current) { for (i = 0; i < Elements(arrayObj->VertexAttrib); i++) { if (arrayObj->VertexAttrib[i].Enabled) { - min = MIN2(min, arrayObj->VertexAttrib[i]._MaxElement); + min = update_min(min, &arrayObj->VertexAttrib[i]); } } } -- cgit v1.2.3