cso: check count == 0 in cso_set_vertex_buffers
authorMarek Olšák <marek.olsak@amd.com>
Tue, 15 May 2018 02:32:33 +0000 (22:32 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 15 May 2018 16:36:27 +0000 (12:36 -0400)
commit3e27b377f2c0e1644c466cdb32872b771300ffda
tree2710d129d559a6a072cb343409db4d9039e8e7fb
parentdace6072459c94ff7dbc3a248ceef3d95bd26631
cso: check count == 0 in cso_set_vertex_buffers

The code didn't expect that, leading to crashes.

Fixes: 86d63b53a20a747e "gallium: remove aux_vertex_buffer_slot code"
Tested-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/auxiliary/cso_cache/cso_context.c