aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/softpipe/sp_state_derived.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-20 15:11:11 -0600
committerBrian <[email protected]>2007-08-20 15:11:11 -0600
commit0a262998ef2813d19e9fee01d3e5808416e9cb04 (patch)
tree6deb441008fbf668d863e2cea01a9ea559f74bcb /src/mesa/pipe/softpipe/sp_state_derived.c
parenta83b72a67263faf21bf16ff879c9718660684aed (diff)
Move guts of vertex array drawing into the 'draw' module.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_state_derived.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_state_derived.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/mesa/pipe/softpipe/sp_state_derived.c b/src/mesa/pipe/softpipe/sp_state_derived.c
index 95b0cfee033..eba789e9c42 100644
--- a/src/mesa/pipe/softpipe/sp_state_derived.c
+++ b/src/mesa/pipe/softpipe/sp_state_derived.c
@@ -210,22 +210,15 @@ static void calculate_vertex_layout( struct softpipe_context *softpipe )
}
}
- /* If the attributes have changed, tell the draw module (which in turn
- * tells the vf module) about the new vertex layout.
+ /* If the attributes have changed, tell the draw module about
+ * the new vertex layout.
*/
if (attr_mask != softpipe->attr_mask) {
softpipe->attr_mask = attr_mask;
-#define USE_NEW_DRAW 01
-#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
+ slot_to_vf_attr,
+ softpipe->nr_attrs );
}
}