diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-09-10 16:29:23 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-09-10 16:29:23 -0600 |
commit | d56a3adc30c19c8f00cb7dc585e86babfd3a79a7 (patch) | |
tree | 38004b2d716a1383978ceca10ff5f93084d1a03b /src/mesa/pipe/draw/draw_feedback.c | |
parent | b2dfe2be6cc91c330e7fe21ea663cacfc220582d (diff) |
More work on vertex feedback / glRasterPos. Basic rasterpos works now.
Diffstat (limited to 'src/mesa/pipe/draw/draw_feedback.c')
-rw-r--r-- | src/mesa/pipe/draw/draw_feedback.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/pipe/draw/draw_feedback.c b/src/mesa/pipe/draw/draw_feedback.c index 2729f44dc6..ecdd98e83d 100644 --- a/src/mesa/pipe/draw/draw_feedback.c +++ b/src/mesa/pipe/draw/draw_feedback.c @@ -81,7 +81,8 @@ feedback_vertex(struct draw_stage *stage, const struct vertex_header *vertex) for (i = 0; i < feedback->num_attribs; i++) { const uint attr = feedback->attrib[i]; - const float *src = attr ? vertex->data[attr] : vertex->clip; + const uint slot = stage->draw->vertex_info.attrib_to_slot[attr]; + const float *src = attr ? vertex->data[slot] : vertex->clip; const uint size = feedback->size[i]; float *dest = fs->dest[i * select]; |