summaryrefslogtreecommitdiff
path: root/vdp.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2020-01-09 22:27:20 -0800
committerMichael Pavone <pavone@retrodev.com>2020-01-09 22:27:20 -0800
commit5b278dd0f7611ed742317322958ca5b6ed93b1b5 (patch)
tree93bcc38d8ceb0a03e98e4062785f9d26f3eb87b6 /vdp.c
parent668b0fa52ae53afa58734a7830581444cae2b27c (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.c3
1 files changed, 3 insertions, 0 deletions
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;