Module: Mesa
Branch: master
Commit: f49d53594c8ba501c39f9a43148ce02a0ec8bfc2
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f49d53594c8ba501c39f9a43148ce02a0ec8bfc2

Author: Brian Paul <[email protected]>
Date:   Thu Oct  8 12:50:42 2009 -0600

mesa: free display list state after freeing shared state

Fixes bug 24402.

---

 src/mesa/main/context.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 4d222cb..95ff349 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -971,7 +971,6 @@ _mesa_free_context_data( GLcontext *ctx )
    _mesa_reference_fragprog(ctx, &ctx->FragmentProgram._TexEnvProgram, NULL);
 
    _mesa_free_attrib_data(ctx);
-   _mesa_free_display_list_data(ctx);
    _mesa_free_lighting_data( ctx );
    _mesa_free_eval_data( ctx );
    _mesa_free_texture_data( ctx );
@@ -1012,6 +1011,9 @@ _mesa_free_context_data( GLcontext *ctx )
       _mesa_free_shared_state( ctx, ctx->Shared );
    }
 
+   /* needs to be after freeing shared state */
+   _mesa_free_display_list_data(ctx);
+
    if (ctx->Extensions.String)
       _mesa_free((void *) ctx->Extensions.String);
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to