From: Chia-I Wu Date: Wed, 4 Aug 2010 06:00:04 +0000 (+0800) Subject: draw: Fix the edge flags of flatshade_first polygons. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c2f01bbb076af8b8ae6e1803d95a9ae678c2d1c;p=mesa.git draw: Fix the edge flags of flatshade_first polygons. This bug can be triggered by rendering polygons with glProvokingVertexEXT(GL_FIRST_VERTEX_CONVENTION_EXT); glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); --- diff --git a/src/gallium/auxiliary/draw/draw_pt_vcache_tmp.h b/src/gallium/auxiliary/draw/draw_pt_vcache_tmp.h index dac68ad4398..a42162691b9 100644 --- a/src/gallium/auxiliary/draw/draw_pt_vcache_tmp.h +++ b/src/gallium/auxiliary/draw/draw_pt_vcache_tmp.h @@ -146,10 +146,10 @@ static void FUNC( struct draw_pt_front_end *frontend, if (flatfirst) { flags = (DRAW_PIPE_RESET_STIPPLE | - DRAW_PIPE_EDGE_FLAG_1 | - DRAW_PIPE_EDGE_FLAG_2); - edge_next = DRAW_PIPE_EDGE_FLAG_2; - edge_finish = DRAW_PIPE_EDGE_FLAG_0; + DRAW_PIPE_EDGE_FLAG_0 | + DRAW_PIPE_EDGE_FLAG_1); + edge_next = DRAW_PIPE_EDGE_FLAG_1; + edge_finish = DRAW_PIPE_EDGE_FLAG_2; } else { flags = (DRAW_PIPE_RESET_STIPPLE |