vbo: fix possible use-after-free segfault after a VAO is deleted
authorMarek Olšák <maraeo@gmail.com>
Tue, 23 Apr 2013 23:29:26 +0000 (01:29 +0200)
committerMarek Olšák <maraeo@gmail.com>
Wed, 1 May 2013 18:08:53 +0000 (20:08 +0200)
commit8eef6ad2e2f90feac231a2e09ed4765f23ed1557
tree36bdf18ebe5d9152e92f406fe1dc4bf00192bc39
parentb5b6460c40e1c46f6af6a490485132ea0864572c
vbo: fix possible use-after-free segfault after a VAO is deleted

This like the fifth attempt to fix the issue.

Also with the new "validating" flag, we can set recalculate_inputs to FALSE
earlier in vbo_bind_arrays, because _mesa_update_state won't change it.

NOTE: This is a candidate for the stable branches.

v2: fixed a typo

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/vbo/vbo_exec.c
src/mesa/vbo/vbo_exec.h
src/mesa/vbo/vbo_exec_array.c