summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorPekka Paalanen <[email protected]>2008-11-09 01:02:10 +0200
committerBrian Paul <[email protected]>2008-11-10 11:16:15 -0700
commiteb4dded5be60af4c7d45394aaa0aca24549ec3d8 (patch)
tree7231b6d6a0734302ce98b960914d28107cae3685 /src/mesa
parent2276dcf05f7e0ae13ba434615cf7f34dc06b2afe (diff)
Mesa: fix number of buffers in st_draw_vbo().
The clean-up call to pipe->set_vertex_buffers() should use the same number of buffers as the first call. Signed-off-by: Pekka Paalanen <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c
index 7cf06da43cc..4bc734bad38 100644
--- a/src/mesa/state_tracker/st_draw.c
+++ b/src/mesa/state_tracker/st_draw.c
@@ -672,7 +672,7 @@ st_draw_vbo(GLcontext *ctx,
pipe_buffer_reference(pipe->screen, &vbuffer[attr].buffer, NULL);
assert(!vbuffer[attr].buffer);
}
- pipe->set_vertex_buffers(pipe, vp->num_inputs, vbuffer);
+ pipe->set_vertex_buffers(pipe, num_vbuffers, vbuffer);
}