mesa: add missing update_min() call in update_arrays()
authorBrian Paul <brianp@vmware.com>
Fri, 22 May 2009 21:35:49 +0000 (15:35 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 22 May 2009 21:35:49 +0000 (15:35 -0600)
src/mesa/main/state.c

index d5bdb63..7b41b8f 100644 (file)
@@ -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]);
          }
       }
    }