summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/draw/draw_cull.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/pipe/draw/draw_cull.c b/src/mesa/pipe/draw/draw_cull.c
index b6c578b3c94..1498874fcf9 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 */