Mesa (master): draw: Fix the edge flags of flatshade_first polygons.
Chia-I Wu
olv at kemper.freedesktop.org
Wed Aug 4 06:03:32 UTC 2010
Module: Mesa
Branch: master
Commit: 5c2f01bbb076af8b8ae6e1803d95a9ae678c2d1c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5c2f01bbb076af8b8ae6e1803d95a9ae678c2d1c
Author: Chia-I Wu <olv at lunarg.com>
Date: Wed Aug 4 14:00:04 2010 +0800
draw: Fix the edge flags of flatshade_first polygons.
This bug can be triggered by rendering polygons with
glProvokingVertexEXT(GL_FIRST_VERTEX_CONVENTION_EXT);
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
---
src/gallium/auxiliary/draw/draw_pt_vcache_tmp.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/gallium/auxiliary/draw/draw_pt_vcache_tmp.h b/src/gallium/auxiliary/draw/draw_pt_vcache_tmp.h
index dac68ad..a421626 100644
--- a/src/gallium/auxiliary/draw/draw_pt_vcache_tmp.h
+++ b/src/gallium/auxiliary/draw/draw_pt_vcache_tmp.h
@@ -146,10 +146,10 @@ static void FUNC( struct draw_pt_front_end *frontend,
if (flatfirst) {
flags = (DRAW_PIPE_RESET_STIPPLE |
- DRAW_PIPE_EDGE_FLAG_1 |
- DRAW_PIPE_EDGE_FLAG_2);
- edge_next = DRAW_PIPE_EDGE_FLAG_2;
- edge_finish = DRAW_PIPE_EDGE_FLAG_0;
+ DRAW_PIPE_EDGE_FLAG_0 |
+ DRAW_PIPE_EDGE_FLAG_1);
+ edge_next = DRAW_PIPE_EDGE_FLAG_1;
+ edge_finish = DRAW_PIPE_EDGE_FLAG_2;
}
else {
flags = (DRAW_PIPE_RESET_STIPPLE |
More information about the mesa-commit
mailing list