st/mesa: use PIPE_MAX_ATTRIBS as the max number of vertex buffers
authorMarek Olšák <marek.olsak@amd.com>
Sun, 30 Apr 2017 12:28:34 +0000 (14:28 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 8 May 2017 16:32:00 +0000 (18:32 +0200)
Tested-by: Edmondo Tommasina <edmondo.tommasina@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_atom_array.c

index fb5c1498989d8cb0cb5424e98ee18b7fd5cce1a9..d3c4ff320318e268af6f1170fbf8d9e4083fe333 100644 (file)
@@ -632,7 +632,7 @@ void st_update_array(struct st_context *st)
    const struct gl_vertex_array **arrays = ctx->Array._DrawArrays;
    const struct st_vertex_program *vp;
    const struct st_vp_variant *vpv;
-   struct pipe_vertex_buffer vbuffer[PIPE_MAX_SHADER_INPUTS];
+   struct pipe_vertex_buffer vbuffer[PIPE_MAX_ATTRIBS];
    struct pipe_vertex_element velements[PIPE_MAX_ATTRIBS];
    unsigned num_vbuffers;