summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-15 12:52:00 +0100
committerBrian <[email protected]>2007-08-15 12:52:00 +0100
commit15481160f9b38f67009acac86cb62615362cee72 (patch)
tree93077698365644d02f1d11c94e4ebbe66a182608 /src
parent00ccff03a50ac62091c4d1735a31d4debed2c8c9 (diff)
more debug output (context destroy, fb destroy)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/context.c9
-rw-r--r--src/mesa/main/framebuffer.c4
2 files changed, 12 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 64f3a7ffbc5..bfae5d17091 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1192,6 +1192,10 @@ _mesa_free_context_data( GLcontext *ctx )
_mesa_make_current(ctx, NULL, NULL);
}
+#if DEBUG
+ printf("%lu: MESA: BEGIN DESTROY CONTEXT %p\n",
+ _glthread_GetID(), (void*) ctx);
+#endif
if (ctx->AttribStackDepth > 0) {
#ifdef DEBUG
printf("%lu: MESA: DESTROY CONTEXT WITH NON-EMPTRY ATTRIB STACK!\n",
@@ -1242,6 +1246,11 @@ _mesa_free_context_data( GLcontext *ctx )
if (ctx == _mesa_get_current_context()) {
_mesa_make_current(NULL, NULL, NULL);
}
+
+#if DEBUG
+ printf("%lu: MESA: END DESTROY CONTEXT %p\n",
+ _glthread_GetID(), (void*) ctx);
+#endif
}
diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c
index 09f0994a3c1..5eb45f6e4a3 100644
--- a/src/mesa/main/framebuffer.c
+++ b/src/mesa/main/framebuffer.c
@@ -191,7 +191,9 @@ _mesa_free_framebuffer_data(struct gl_framebuffer *fb)
_mesa_reference_renderbuffer(&att->Renderbuffer, NULL);
}
if (att->Texture) {
- MESA_REF_TEXOBJ(&att->Texture, NULL);
+ char s[100];
+ sprintf(s, "_mesa_free_framebuffer_data (fb=%d)", fb->Name);
+ _mesa_reference_texobj(&att->Texture, NULL, s);
}
ASSERT(!att->Renderbuffer);
ASSERT(!att->Texture);