fix GetVertexAttrib problem
diff --git a/src/mesa/shader/arbprogram.c b/src/mesa/shader/arbprogram.c
index 8523558..79615d6 100644
--- a/src/mesa/shader/arbprogram.c
+++ b/src/mesa/shader/arbprogram.c
@@ -130,7 +130,10 @@
          break;
       case GL_CURRENT_VERTEX_ATTRIB_ARB:
 	 FLUSH_CURRENT(ctx, 0);
-         COPY_4V(params, ctx->Current.Attrib[VERT_ATTRIB_GENERIC0 + index]);
+         /* XXX should read:
+            COPY_4V(params, ctx->Current.Attrib[VERT_ATTRIB_GENERIC0 + index]);
+          */
+         COPY_4V(params, ctx->Current.Attrib[index]);
          break;
       case GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB:
          if (!ctx->Extensions.ARB_vertex_buffer_object) {