summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-05-13 09:47:13 -0600
committerBrian Paul <[email protected]>2009-05-13 09:47:13 -0600
commit3e74faa02948624cfbaf1f03854f27e0c9130759 (patch)
tree129f99f4d1847e1968cf6b45e1086150ab1ad1d7 /src/mesa/main/context.c
parent7ae4ce9e22e39d78e2d31164c05a3b267fb48e3c (diff)
mesa: delete array objects before buffer objects during context tear-down
The former may point to the later.
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r--src/mesa/main/context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 60c48289e4a..ec0dc12a3eb 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);