summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo_exec.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-04-24 01:29:26 +0200
committerMarek Olšák <[email protected]>2013-05-01 20:08:53 +0200
commit8eef6ad2e2f90feac231a2e09ed4765f23ed1557 (patch)
tree36bdf18ebe5d9152e92f406fe1dc4bf00192bc39 /src/mesa/vbo/vbo_exec.h
parentb5b6460c40e1c46f6af6a490485132ea0864572c (diff)
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 <[email protected]>
Diffstat (limited to 'src/mesa/vbo/vbo_exec.h')
-rw-r--r--src/mesa/vbo/vbo_exec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo_exec.h b/src/mesa/vbo/vbo_exec.h
index 9fc87917c59..bd3ab3ba6f3 100644
--- a/src/mesa/vbo/vbo_exec.h
+++ b/src/mesa/vbo/vbo_exec.h
@@ -81,6 +81,7 @@ struct vbo_exec_context
struct gl_context *ctx;
GLvertexformat vtxfmt;
GLvertexformat vtxfmt_noop;
+ GLboolean validating; /**< if we're in the middle of state validation */
struct {
struct gl_buffer_object *bufferobj;