diff options
author | Brian Paul <brianp@vmware.com> | 2009-05-13 09:47:13 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-05-13 09:47:13 -0600 |
commit | 3e74faa02948624cfbaf1f03854f27e0c9130759 (patch) | |
tree | 129f99f4d1847e1968cf6b45e1086150ab1ad1d7 | |
parent | 7ae4ce9e22e39d78e2d31164c05a3b267fb48e3c (diff) |
mesa: delete array objects before buffer objects during context tear-down
The former may point to the later.
-rw-r--r-- | src/mesa/main/context.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 60c48289e4..ec0dc12a3e 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1005,10 +1005,11 @@ _mesa_free_context_data( GLcontext *ctx ) _mesa_free_query_data(ctx); #endif + _mesa_delete_array_object(ctx, ctx->Array.DefaultArrayObj); + #if FEATURE_ARB_vertex_buffer_object _mesa_delete_buffer_object(ctx, ctx->Array.NullBufferObj); #endif - _mesa_delete_array_object(ctx, ctx->Array.DefaultArrayObj); /* free dispatch tables */ _mesa_free(ctx->Exec); |