diff options
author | Brian <[email protected]> | 2007-08-15 10:10:02 +0100 |
---|---|---|
committer | Brian <[email protected]> | 2007-08-15 10:10:02 +0100 |
commit | 42c91eebc927eccdc443fa02fa72035175e9efcc (patch) | |
tree | f79f05916609cce406b239a9dd616512e41dbc02 /src/mesa/main/context.c | |
parent | 88273e08b420c3c56579e753a522773b5c581461 (diff) |
Added _mesa_free_attrib_data() to free anything left in the attribute stack upon context destruction.
Also, a bit more refcount debug info.
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | 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 75ca54f20fe..64f3a7ffbc5 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1194,7 +1194,8 @@ _mesa_free_context_data( GLcontext *ctx ) if (ctx->AttribStackDepth > 0) { #ifdef DEBUG - printf("MESA: DESTROY CONTEXT WITH NON-EMPTRY ATTRIB STACK!\n"); + printf("%lu: MESA: DESTROY CONTEXT WITH NON-EMPTRY ATTRIB STACK!\n", + _glthread_GetID()); #endif } @@ -1204,6 +1205,7 @@ _mesa_free_context_data( GLcontext *ctx ) _mesa_unreference_framebuffer(&ctx->DrawBuffer); _mesa_unreference_framebuffer(&ctx->ReadBuffer); + _mesa_free_attrib_data(ctx); _mesa_free_lighting_data( ctx ); _mesa_free_eval_data( ctx ); _mesa_free_texture_data( ctx ); |