Mercurial > repos > blastem
diff vdp.c @ 2030:bcc85f6b06c2
Close VDP debug windows when VDP is freed. Fixes Trac bug 39
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 20 Feb 2021 12:47:26 -0800 |
parents | dcdad92f84a4 |
children | 441d5d6cea2f |
line wrap: on
line diff
--- a/vdp.c Mon Feb 15 22:10:49 2021 -0800 +++ b/vdp.c Sat Feb 20 12:47:26 2021 -0800 @@ -254,6 +254,15 @@ void vdp_free(vdp_context *context) { + if (headless) { + free(context->fb); + } + for (int i = 0; i < VDP_NUM_DEBUG_TYPES; i++) + { + if (context->enabled_debuggers & (1 << i)) { + vdp_toggle_debug_view(context, i); + } + } free(context); }