summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/main/state.c2
1 files changed, 1 insertions, 1 deletions
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]);
}
}
}