From: Brian Date: Thu, 23 Aug 2007 23:57:08 +0000 (-0600) Subject: fix an edgeflag logic error, see comments X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=38091ef42a647b0be20e0462b065cb9d88f0784b;p=mesa.git fix an edgeflag logic error, see comments --- diff --git a/src/mesa/pipe/draw/draw_prim.c b/src/mesa/pipe/draw/draw_prim.c index 4bb81281b58..509ab376aa6 100644 --- a/src/mesa/pipe/draw/draw_prim.c +++ b/src/mesa/pipe/draw/draw_prim.c @@ -429,6 +429,11 @@ static struct vertex_header *get_vertex( struct draw_context *draw, draw->vs.queue[draw->vs.queue_nr].dest = draw->vcache.vertex[slot]; draw->vs.queue[draw->vs.queue_nr].elt = i; draw->vs.queue_nr++; + + /* Need to set the vertex's edge flag here. If we're being called + * by do_ef_triangle(), that function needs edge flag info! + */ + draw->vcache.vertex[slot]->edgeflag = 1; /*XXX use user's edge flag! */ } /* Mark slot as in-use: