summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_pt_post_vs.c
diff options
context:
space:
mode:
authorZack Rusin <zackr@vmware.com>2010-06-25 19:58:09 -0400
committerZack Rusin <zackr@vmware.com>2010-06-25 19:58:09 -0400
commita5c44986a3f19936df448fe4ae47ca77ece9b0ce (patch)
tree463a813c0da3d3263805472a7cd5fa878a410260 /src/gallium/auxiliary/draw/draw_pt_post_vs.c
parent8ebfcf31eb905b7d47e520c04420620ae21bdf4e (diff)
draw: initialize headers in the none post paths as well
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_post_vs.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_post_vs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_post_vs.c b/src/gallium/auxiliary/draw/draw_pt_post_vs.c
index fb92bd8d71..53a6a93f3a 100644
--- 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;
}