projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ebfcf3
)
draw: initialize headers in the none post paths as well
author
Zack Rusin
<zackr@vmware.com>
Fri, 25 Jun 2010 23:58:09 +0000
(19:58 -0400)
committer
Zack Rusin
<zackr@vmware.com>
Fri, 25 Jun 2010 23:58:09 +0000
(19:58 -0400)
src/gallium/auxiliary/draw/draw_pt_post_vs.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/draw/draw_pt_post_vs.c
b/src/gallium/auxiliary/draw/draw_pt_post_vs.c
index fb92bd8d715239dc8c2d0e968dc91e4fc567db83..53a6a93f3a756e5e784ce4b989c87f3d713b16db 100644
(file)
--- a/
src/gallium/auxiliary/draw/draw_pt_post_vs.c
+++ b/
src/gallium/auxiliary/draw/draw_pt_post_vs.c
@@
-218,7
+218,15
@@
static boolean post_vs_viewport( struct pt_post_vs *pvs,
static boolean post_vs_none( struct pt_post_vs *pvs,
struct draw_vertex_info *info )
{
+ struct vertex_header *out = info->verts;
+
if (0) debug_printf("%s\n", __FUNCTION__);
+ /* just initialize the vertex_id in all headers */
+ for (j = 0; j < info->count; j++) {
+ initialize_vertex_header(out);
+
+ out = (struct vertex_header *)((char *)out + info->stride);
+ }
return FALSE;
}