/* drawing done here: */
if (!draw->rasterizer->bypass_vs ||
- (draw->rasterizer->flatshade && draw->rasterizer->flatshade_first) ||
!draw_pt_arrays(draw, prim, start, count)) {
/* we have to run the whole pipeline */
draw_prim(draw, prim, start, count);
#include "draw/draw_pt.h"
+/* XXX: Shouldn't those two functions below use the '>' operator???
+ */
+
static boolean too_many_verts( struct draw_context *draw,
unsigned verts )
{
/* AA lines */
if (draw->rasterizer->line_smooth && draw->pipeline.aaline)
return TRUE;
+
+ /* first-vertex driven flatshading */
+ if (draw->rasterizer->flatshade && draw->rasterizer->flatshade_first)
+ return TRUE;
}
if (points(prim))
/* two-side lighting */
if (draw->rasterizer->light_twoside)
return TRUE;
+
+ /* first-vertex driven flatshading */
+ if (draw->rasterizer->flatshade && draw->rasterizer->flatshade_first)
+ return TRUE;
}
/* polygon cull - this is difficult - hardware can cull just fine