tnl: Don't dereference NULL obj pointer in replay_init
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 8 Apr 2020 18:03:45 +0000 (11:03 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 13 Apr 2020 17:26:40 +0000 (10:26 -0700)
commit2e43b32e72b2adf7ce865f56cf2647b137a5342a
tree42bb52b94935669496c70406a74247ee3deb5778
parent65f14fd68dac4fb52c765c82f08931d7aa745e61
tnl: Don't dereference NULL obj pointer in replay_init

Structurally the code is now similar to the handling of other
gl_buffer_object::obj pointers elsewhere in TNL.  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_split_copy.c