changeset 1897:59a83c21d9d2

Fix crash in 68K debugger from forced VDP frame update when framebuffer is not acquired
author Michael Pavone <pavone@retrodev.com>
date Thu, 09 Jan 2020 22:27:20 -0800
parents c157a535ceeb
children ebf124803a93
files vdp.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vdp.c	Tue Jan 07 22:52:27 2020 -0800
+++ b/vdp.c	Thu Jan 09 22:27:20 2020 -0800
@@ -2071,6 +2071,9 @@
 
 void vdp_force_update_framebuffer(vdp_context *context)
 {
+	if (!context->fb) {
+		return;
+	}
 	uint16_t lines_max = context->inactive_start + context->border_bot + context->border_top;
 			
 	uint16_t to_fill = lines_max - context->output_lines;