From 0b89f7a93a234491b4fa967450de500c4e29e789 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 6 Oct 2004 15:52:43 +0000 Subject: [PATCH] fix GetVertexAttrib problem --- src/mesa/shader/arbprogram.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mesa/shader/arbprogram.c b/src/mesa/shader/arbprogram.c index 85235586181..79615d609ce 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) { -- 2.30.2