summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-05-22 15:35:49 -0600
committerBrian Paul <brianp@vmware.com>2009-05-22 15:35:49 -0600
commit68d412f31cbf028b1faa1c7fd95b849a95bb762c (patch)
treeb7f68ac5824a19779a6ffd7d31821491f33a6283 /src
parent2ead49f98bcc18ab0ebc7942de78e280ec56d77a (diff)
mesa: add missing update_min() call in update_arrays()
Diffstat (limited to 'src')
-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 d5bdb63a97..7b41b8f4da 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]);
}
}
}