From dd9666bc1def9e99a5050545ab71d24037cf5af0 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Wed, 5 Jan 2005 18:06:05 +0000 Subject: 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* --- src/mesa/tnl/t_save_playback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/tnl/t_save_playback.c') diff --git a/src/mesa/tnl/t_save_playback.c b/src/mesa/tnl/t_save_playback.c index dc9ffa8db4..26c77bd7d8 100644 --- a/src/mesa/tnl/t_save_playback.c +++ b/src/mesa/tnl/t_save_playback.c @@ -77,7 +77,7 @@ static void _tnl_bind_vertex_list( GLcontext *ctx, data += node->attrsz[attr]; } else { - tmp->Attribs[attr].count = node->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] ); -- cgit v1.2.3