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 2d374329d83173daa489ba3e57ef558b1730915b..6cab086a45216047b415cbb65753410993d915a6 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: