From: Brian Paul Date: Wed, 6 Oct 2004 15:52:43 +0000 (+0000) Subject: fix GetVertexAttrib problem X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b89f7a93a234491b4fa967450de500c4e29e789;p=mesa.git fix GetVertexAttrib problem --- 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) {