Mesa (mesa_7_5_branch): softpipe: fix incorrect tri vertex order for PIPE_PRIM_POLYGON rendering
Brian Paul
brianp at kemper.freedesktop.org
Thu Jun 4 19:13:37 UTC 2009
Module: Mesa
Branch: mesa_7_5_branch
Commit: 6907650211d136ee7cb5a8914c32196d35a75bf3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6907650211d136ee7cb5a8914c32196d35a75bf3
Author: Brian Paul <brianp at vmware.com>
Date: Thu Jun 4 13:12:13 2009 -0600
softpipe: fix incorrect tri vertex order for PIPE_PRIM_POLYGON rendering
This fixes incorrect front/back-face orientation.
(cherry picked from commit a64bbdaa3e0b036a880d6db65ceb4a66205062f1)
---
src/gallium/drivers/softpipe/sp_prim_vbuf.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/softpipe/sp_prim_vbuf.c b/src/gallium/drivers/softpipe/sp_prim_vbuf.c
index 329c92b..56f12b9 100644
--- a/src/gallium/drivers/softpipe/sp_prim_vbuf.c
+++ b/src/gallium/drivers/softpipe/sp_prim_vbuf.c
@@ -420,8 +420,8 @@ sp_vbuf_draw_arrays(struct vbuf_render *vbr, uint start, uint nr)
*/
for (i = 2; i < nr; i += 1) {
setup_tri( setup_ctx,
- get_vert(vertex_buffer, i-0, stride),
get_vert(vertex_buffer, i-1, stride),
+ get_vert(vertex_buffer, i-0, stride),
get_vert(vertex_buffer, 0, stride));
}
break;
More information about the mesa-commit
mailing list