From: Brian Date: Thu, 12 Jul 2007 17:59:15 +0000 (-0600) Subject: culling was inverted X-Git-Tag: 062012170305~17580^2~390^2~4702 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e94e9b7980b08038d7d4c6b76b8f184d70ba163;p=profile%2Fivi%2Fmesa.git culling was inverted --- diff --git a/src/mesa/pipe/draw/draw_cull.c b/src/mesa/pipe/draw/draw_cull.c index b6c578b..1498874 100644 --- a/src/mesa/pipe/draw/draw_cull.c +++ b/src/mesa/pipe/draw/draw_cull.c @@ -79,7 +79,7 @@ static void cull_tri( struct prim_stage *stage, if (header->det != 0) { /* non-zero area */ - GLuint mode = (header->det < 0) ? PIPE_WINDING_CW : PIPE_WINDING_CCW; + GLuint mode = (header->det > 0) ? PIPE_WINDING_CW : PIPE_WINDING_CCW; if ((mode & cull_stage(stage)->mode) == 0) { /* triangle is not culled, pass to next stage */