projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f25e100
)
softpipe: fix incorrect tri vertex order for PIPE_PRIM_POLYGON rendering
author
Brian Paul
<brianp@vmware.com>
Thu, 4 Jun 2009 00:31:55 +0000
(18:31 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 4 Jun 2009 00:31:55 +0000
(18:31 -0600)
This fixes incorrect front/back-face orientation.
src/gallium/drivers/softpipe/sp_prim_vbuf.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/softpipe/sp_prim_vbuf.c
b/src/gallium/drivers/softpipe/sp_prim_vbuf.c
index 329c92b8da1564a349e9583dd0417fd375e825ab..56f12b9810d6ca60ff09b19c090e4435afe8b044 100644
(file)
--- 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;