draw: Fix the edge flags of flatshade_first polygons.
authorChia-I Wu <olv@lunarg.com>
Wed, 4 Aug 2010 06:00:04 +0000 (14:00 +0800)
committerChia-I Wu <olv@lunarg.com>
Wed, 4 Aug 2010 06:03:05 +0000 (14:03 +0800)
This bug can be triggered by rendering polygons with

   glProvokingVertexEXT(GL_FIRST_VERTEX_CONVENTION_EXT);
   glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);

src/gallium/auxiliary/draw/draw_pt_vcache_tmp.h

index dac68ad4398fd81689f5d00353a87a0a01fa9e57..a42162691b96b1489f0d92fe5b2446bef3b2c768 100644 (file)
@@ -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 |