front/back determination was wrong
authorBrian <brian.paul@tungstengraphics.com>
Tue, 16 Oct 2007 23:59:24 +0000 (17:59 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 16 Oct 2007 23:59:24 +0000 (17:59 -0600)
src/mesa/pipe/draw/draw_unfilled.c

index 2d37432..6cab086 100644 (file)
@@ -125,7 +125,7 @@ static void unfilled_tri( struct draw_stage *stage,
                          struct prim_header *header )
 {
    struct unfilled_stage *unfilled = unfilled_stage(stage);
-   unsigned mode = unfilled->mode[header->det < 0.0];
+   unsigned mode = unfilled->mode[header->det >= 0.0];
   
    switch (mode) {
    case PIPE_POLYGON_MODE_FILL: