From 5b278dd0f7611ed742317322958ca5b6ed93b1b5 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Thu, 9 Jan 2020 22:27:20 -0800 Subject: Fix crash in 68K debugger from forced VDP frame update when framebuffer is not acquired --- vdp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vdp.c') diff --git a/vdp.c b/vdp.c index 517eee6..ff7338e 100644 --- a/vdp.c +++ b/vdp.c @@ -2071,6 +2071,9 @@ static void vdp_update_per_frame_debug(vdp_context *context) 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; -- cgit v1.2.3