st/mesa: fix a possible crash with selection and feedback modes
authorMarek Olšák <marek.olsak@amd.com>
Wed, 12 Feb 2020 22:15:34 +0000 (17:15 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 10 Mar 2020 01:26:55 +0000 (21:26 -0400)
commit040a7117c3b404f82a39cf7b2b232a2149ddfeec
treeec26a6702897624bb54402d923778dc9a5e08d9c
parent7b0e043d486d06a17329b38f41a8e3703c85d356
st/mesa: fix a possible crash with selection and feedback modes

The index bounds are always valid without an index buffer, but they won't be.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3986>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3986>
src/mesa/state_tracker/st_draw_feedback.c