From: Marek Olšák Date: Sun, 30 Apr 2017 12:28:34 +0000 (+0200) Subject: st/mesa: use PIPE_MAX_ATTRIBS as the max number of vertex buffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d801247cec8f55304fbf8d6c222272941ec23fdb;p=mesa.git st/mesa: use PIPE_MAX_ATTRIBS as the max number of vertex buffers Tested-by: Edmondo Tommasina Reviewed-by: Brian Paul Reviewed-by: Nicolai Hähnle --- diff --git a/src/mesa/state_tracker/st_atom_array.c b/src/mesa/state_tracker/st_atom_array.c index fb5c1498989..d3c4ff32031 100644 --- a/src/mesa/state_tracker/st_atom_array.c +++ b/src/mesa/state_tracker/st_atom_array.c @@ -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;