diff options
-rw-r--r-- | src/mesa/shader/arbprogram.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/shader/arbprogram.c b/src/mesa/shader/arbprogram.c index 8523558618..79615d609c 100644 --- a/src/mesa/shader/arbprogram.c +++ b/src/mesa/shader/arbprogram.c @@ -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) { |