mesa: fix crash in st/mesa after deleting a VAO
authorMarek Olšák <marek.olsak@amd.com>
Thu, 10 Jul 2014 22:05:44 +0000 (00:05 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 11 Jul 2014 17:36:29 +0000 (19:36 +0200)
commit734e4946f50c1b83dafdb18ced652abc88e6a246
tree2d08733088b97de78cc53d9653eff44aaae1b507
parentf381c27c548aa28b003c8e188f5d627ab4105f76
mesa: fix crash in st/mesa after deleting a VAO

This happens when glGetMultisamplefv (or any other non-draw function) is
called, which doesn't invoke the VBO module to update _DrawArrays and
the pointer is invalid at that point.

However st/mesa still dereferences it to setup vertex buffers ==> crash.

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