diff options
author | Brian <[email protected]> | 2008-03-13 17:39:30 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2008-03-13 17:39:30 -0600 |
commit | 34be3969505d378c5a6734a134f03d094a865c56 (patch) | |
tree | 77002bc5f32181c50e1bc5438e24f5ae317d3905 /src/gallium/auxiliary/draw | |
parent | d088d640fca415261a208d3cbede94a6522ebb6b (diff) |
gallium: fix EMIT_HEADER case in draw_vf_set_vertex_info()
Diffstat (limited to 'src/gallium/auxiliary/draw')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_vf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vf.c b/src/gallium/auxiliary/draw/draw_vf.c index 4b5b2a86f67..f4e29a62932 100644 --- a/src/gallium/auxiliary/draw/draw_vf.c +++ b/src/gallium/auxiliary/draw/draw_vf.c @@ -265,7 +265,11 @@ void draw_vf_set_vertex_info( struct draw_vertex_fetch *vf, } case EMIT_HEADER: /* XXX emit new DRAW_EMIT_HEADER attribute??? */ - count += sizeof(struct vertex_header) / 4; + attrs[nr_attrs].attrib = 0; + attrs[nr_attrs].format = DRAW_EMIT_PAD; + attrs[nr_attrs].offset = offsetof(struct vertex_header, data); + count += offsetof(struct vertex_header, data)/4; + nr_attrs++; break; case EMIT_1F: attrs[nr_attrs].attrib = j; |