summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/draw/draw_feedback.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/draw/draw_feedback.c')
-rw-r--r--src/mesa/pipe/draw/draw_feedback.c3
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 2729f44dc69..ecdd98e83d7 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];