From d9a230f30a98eb677bba869a6f7bb9a840e36354 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 15 Aug 2007 19:03:20 -0600 Subject: Hook in new draw_arrays() code, disabled for now. --- src/mesa/pipe/softpipe/sp_state_derived.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mesa/pipe/softpipe/sp_state_derived.c') diff --git a/src/mesa/pipe/softpipe/sp_state_derived.c b/src/mesa/pipe/softpipe/sp_state_derived.c index cd67d1c46f..44beb9c3eb 100644 --- a/src/mesa/pipe/softpipe/sp_state_derived.c +++ b/src/mesa/pipe/softpipe/sp_state_derived.c @@ -156,9 +156,16 @@ static void calculate_vertex_layout( struct softpipe_context *softpipe ) if (attr_mask != softpipe->attr_mask) { softpipe->attr_mask = attr_mask; +#define USE_NEW_DRAW 0 +#if USE_NEW_DRAW + draw_set_vertex_attributes2( softpipe->draw, + slot_to_vf_attr, + softpipe->nr_attrs ); +#else draw_set_vertex_attributes( softpipe->draw, slot_to_vf_attr, softpipe->nr_attrs ); +#endif } } -- cgit v1.2.3