summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/softpipe/sp_prim_vbuf.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-06-03 18:31:55 -0600
committerBrian Paul <brianp@vmware.com>2009-06-03 18:31:55 -0600
commita64bbdaa3e0b036a880d6db65ceb4a66205062f1 (patch)
treeb2b4aeb7d76f0220a563dc0a43b55b5352be90a2 /src/gallium/drivers/softpipe/sp_prim_vbuf.c
parentf25e1007c2da21dc529811e9e1f4b4da6bda8be4 (diff)
softpipe: fix incorrect tri vertex order for PIPE_PRIM_POLYGON rendering
This fixes incorrect front/back-face orientation.
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_prim_vbuf.c')
-rw-r--r--src/gallium/drivers/softpipe/sp_prim_vbuf.c2
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 329c92b8da..56f12b9810 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;