diff options
author | Brian Paul <[email protected]> | 2008-05-16 15:34:22 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-05-16 15:34:22 -0600 |
commit | ffbd455a36f1d7600bd5b60e91768133d901d2f4 (patch) | |
tree | 6212d6b21d98e5fc95903b9e4bb1c36061f5244a /src/mesa/vbo/vbo_exec_draw.c | |
parent | 5f6a726d9f2274df1a968e5f3cd3862894b47a38 (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 23a3658386c..6bb6849a6a5 100644 --- a/src/mesa/vbo/vbo_exec_draw.c +++ b/src/mesa/vbo/vbo_exec_draw.c @@ -198,7 +198,7 @@ static void vbo_exec_bind_arrays( GLcontext *ctx ) arrays[attr].BufferObj = exec->vtx.bufferobj; arrays[attr]._MaxElement = count; /* ??? */ - data += exec->vtx.attrsz[attr] * sizeof(GLfloat); + data += exec->vtx.attrsz[src] * sizeof(GLfloat); } } } |