st/mesa: set the vbuffer to NULL if we are skipping it
authorDave Airlie <airlied@redhat.com>
Fri, 4 Sep 2015 00:24:39 +0000 (01:24 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 11 Sep 2015 02:05:42 +0000 (03:05 +0100)
commitb46cbc36072ae050f648f9baa974c4180d9bb8a3
treea1241eb156b453e0cd2da24e639cde6dde912744
parent34cff76fc2da1ce9abad6e2b1856fec6a950d19c
st/mesa: set the vbuffer to NULL if we are skipping it

If we skip a vbuffer we need to make sure we NULL out
the contents, otherwise when it gets passed to the driver
it will get confused.

This was hit by:
GL41-CTS.gpu_shader_fp64.varyings

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_atom_array.c