diff options
author | Keith Whitwell <[email protected]> | 2005-01-05 18:06:05 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2005-01-05 18:06:05 +0000 |
commit | dd9666bc1def9e99a5050545ab71d24037cf5af0 (patch) | |
tree | 0d5f0b91399159768aa9ed35384dc1cb1d107d1b /src/mesa/tnl/t_vtx_exec.c | |
parent | 30f64862766c573505fb7cd03a1c10bbf584c183 (diff) |
Give attributes with zero-stride a count of 1 to make it easier
to avoid transforming the same attribute multiple times.
Don't light a single normal multiple times in light_fast_rgba*
Diffstat (limited to 'src/mesa/tnl/t_vtx_exec.c')
-rw-r--r-- | src/mesa/tnl/t_vtx_exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vtx_exec.c b/src/mesa/tnl/t_vtx_exec.c index 6925850f06a..e8700b934c4 100644 --- a/src/mesa/tnl/t_vtx_exec.c +++ b/src/mesa/tnl/t_vtx_exec.c @@ -139,7 +139,7 @@ static void _tnl_vb_bind_vtx( GLcontext *ctx ) /* VB->AttribPtr[attr] = &tnl->current.Attribs[attr]; */ - tmp->Attribs[attr].count = count; + tmp->Attribs[attr].count = 1; tmp->Attribs[attr].data = (GLfloat (*)[4]) tnl->vtx.current[attr]; tmp->Attribs[attr].start = tnl->vtx.current[attr]; tmp->Attribs[attr].size = get_size( tnl->vtx.current[attr] ); |