tnl: Don't dereference NULL obj pointer in bind_indices
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 8 Apr 2020 03:19:41 +0000 (20:19 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 13 Apr 2020 17:26:38 +0000 (10:26 -0700)
commit65f14fd68dac4fb52c765c82f08931d7aa745e61
tree53a9cd006228701a2939a24abcf13efee8a522a3
parent28d36d26c2212276e1238fad8f0b12caab97fee8
tnl: Don't dereference NULL obj pointer in bind_indices

Structurally the code is now similar to bind_inputs.  The fixes tag is a
little bit misleading.  I think the change in that commit just exposes a
previously existing bug.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2746
Fixes: f3cce7087a5 ("mesa: don't ever bind NullBufferObj for glBindBuffer targets")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4512>
src/mesa/tnl/t_draw.c