diff options
author | Michael Pavone <pavone@retrodev.com> | 2020-01-09 22:27:20 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2020-01-09 22:27:20 -0800 |
commit | 5b278dd0f7611ed742317322958ca5b6ed93b1b5 (patch) | |
tree | 93bcc38d8ceb0a03e98e4062785f9d26f3eb87b6 /vdp.c | |
parent | 668b0fa52ae53afa58734a7830581444cae2b27c (diff) |
Fix crash in 68K debugger from forced VDP frame update when framebuffer is not acquired
Diffstat (limited to 'vdp.c')
-rw-r--r-- | vdp.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |