diff options
author | Brian Paul <[email protected]> | 2004-10-06 15:52:43 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-10-06 15:52:43 +0000 |
commit | 0b89f7a93a234491b4fa967450de500c4e29e789 (patch) | |
tree | 1e29c3c4a0fada614e8fb98c32c06a41b1ff0d6c /src | |
parent | be50caa52c6dd87f5b4e430d67265adca7584126 (diff) |
fix GetVertexAttrib problem
Diffstat (limited to 'src')
-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 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) { |