mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
more debug output (context destroy, fb destroy)
This commit is contained in:
parent
00ccff03a5
commit
15481160f9
2 changed files with 12 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue