use v2 color, not v0 in flat_ci_triangle()
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 28 Nov 2001 16:11:32 +0000 (16:11 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 28 Nov 2001 16:11:32 +0000 (16:11 +0000)
src/mesa/swrast/s_triangle.c

index 7d6a87ddfaca5d72298bb244700ea4630cb12ab7..7c6a26aff318f4da0ddf2f6efee23dc2544c65ea 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: s_triangle.c,v 1.40 2001/11/19 01:18:28 brianp Exp $ */
+/* $Id: s_triangle.c,v 1.41 2001/11/28 16:11:32 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -92,7 +92,7 @@ static void flat_ci_triangle( GLcontext *ctx,
       span.fog += span.fogStep;                                                \
    }                                                                   \
    _mesa_write_monoindex_span(ctx, span.count, span.x, span.y,         \
-                             zSpan, fogSpan, v0->index, NULL, GL_POLYGON );
+                             zSpan, fogSpan, v2->index, NULL, GL_POLYGON );
 
 #include "s_tritemp.h"
 }