diff options
author | Brian Paul <[email protected]> | 2008-05-16 15:23:04 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-05-16 15:23:04 -0600 |
commit | a2e6beade196aef269bda6bb3efb68809f85a683 (patch) | |
tree | 2868eb0f982114d4fbe56573abae71bf5dd13445 /src/mesa/vbo/vbo_exec_draw.c | |
parent | f27c6f313955b737888ce80752ee9cd895562d40 (diff) |
fix an attr/src mix-up when setting-up/binding vertex arrays
This fixes problems with incorrect material coefficients when glMaterial
is called per-vertex.
Diffstat (limited to 'src/mesa/vbo/vbo_exec_draw.c')
-rw-r--r-- | src/mesa/vbo/vbo_exec_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/vbo/vbo_exec_draw.c b/src/mesa/vbo/vbo_exec_draw.c index 0ef26cdfe36..68ce7ba837d 100644 --- a/src/mesa/vbo/vbo_exec_draw.c +++ b/src/mesa/vbo/vbo_exec_draw.c @@ -187,7 +187,7 @@ static void vbo_exec_bind_arrays( GLcontext *ctx ) arrays[attr].BufferObj = exec->vtx.bufferobj; /* NullBufferObj */ arrays[attr]._MaxElement = count; /* ??? */ - data += exec->vtx.attrsz[attr] * sizeof(GLfloat); + data += exec->vtx.attrsz[src] * sizeof(GLfloat); } } } |