From: Brian Paul Date: Wed, 13 May 2009 15:47:13 +0000 (-0600) Subject: mesa: delete array objects before buffer objects during context tear-down X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3e74faa02948624cfbaf1f03854f27e0c9130759;p=mesa.git mesa: delete array objects before buffer objects during context tear-down The former may point to the later. --- 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);