summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-17 15:37:22 +0100
committerBrian <[email protected]>2007-08-17 15:37:22 +0100
commitbc3f87683a25803fde6e69eddccc7e0a1c59df17 (patch)
tree26df9cc33045407c06412eb60b604714744e14ae /src
parentc5004c7db6991a11ffbc76cd4a7a0ce940f8b54a (diff)
fix edgeflag bug
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/draw/draw_prim.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/pipe/draw/draw_prim.c b/src/mesa/pipe/draw/draw_prim.c
index 7757dacf34f..95e71efd6db 100644
--- a/src/mesa/pipe/draw/draw_prim.c
+++ b/src/mesa/pipe/draw/draw_prim.c
@@ -258,8 +258,10 @@ static void do_quad( struct draw_context *draw,
unsigned v2,
unsigned v3 )
{
- do_ef_triangle( draw, 1, ~(1<<0), v0, v1, v3 );
- do_ef_triangle( draw, 0, ~(1<<1), v1, v2, v3 );
+ const unsigned omitEdge2 = ~(1 << 1);
+ const unsigned omitEdge3 = ~(1 << 2);
+ do_ef_triangle( draw, 1, omitEdge2, v0, v1, v3 );
+ do_ef_triangle( draw, 0, omitEdge3, v1, v2, v3 );
}