draw: make room for extra_vs_outputs

This commit is contained in:
Keith Whitwell
2008-04-19 17:16:23 +01:00
parent e7bac42766
commit 2dae208fb1
@@ -56,8 +56,12 @@ static void fetch_pipeline_prepare( struct draw_pt_middle_end *middle,
struct fetch_pipeline_middle_end *fpme = (struct fetch_pipeline_middle_end *)middle;
struct draw_context *draw = fpme->draw;
struct draw_vertex_shader *vs = draw->vertex_shader;
/* Add one to num_outputs because the pipeline occasionally tags on
* an additional texcoord, eg for AA lines.
*/
unsigned nr = MAX2( vs->info.num_inputs,
vs->info.num_outputs );
vs->info.num_outputs + 1 );
fpme->prim = prim;
fpme->opt = opt;