fix GetVertexAttrib problem
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 6 Oct 2004 15:52:43 +0000 (15:52 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 6 Oct 2004 15:52:43 +0000 (15:52 +0000)
src/mesa/shader/arbprogram.c

index 85235586181aa56ab41fa9bca6479d27ce27294b..79615d609cee34bd9069b7fb19111eff5d93b874 100644 (file)
@@ -130,7 +130,10 @@ _mesa_GetVertexAttribfvARB(GLuint index, GLenum pname, GLfloat *params)
          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) {