Mesa: fix number of buffers in st_draw_vbo().
authorPekka Paalanen <pq@iki.fi>
Sat, 8 Nov 2008 23:02:10 +0000 (01:02 +0200)
committerPekka Paalanen <pq@iki.fi>
Sat, 8 Nov 2008 23:02:10 +0000 (01:02 +0200)
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 <pq@iki.fi>
src/mesa/state_tracker/st_draw.c

index bdf8648ef7ca92694bb0c934d4f6a3d96521841f..fbf13aa83770bf64227a208d932aed9bbc2a46fe 100644 (file)
@@ -640,7 +640,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);
 }