From f5fc95cd04a947ec34b044ccf5d1afc8fd82e371 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 5 Jun 2017 06:50:24 +0200 Subject: [PATCH] Add this conditional check --- cores/dynamic_dummy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cores/dynamic_dummy.c b/cores/dynamic_dummy.c index 7e85947938..1387a2426d 100644 --- a/cores/dynamic_dummy.c +++ b/cores/dynamic_dummy.c @@ -126,7 +126,8 @@ void libretro_dummy_retro_reset(void) void libretro_dummy_retro_run(void) { dummy_input_poll_cb(); - dummy_video_cb(frame_buf, 320, 240, 640); + if (frame_buf) + dummy_video_cb(frame_buf, 320, 240, 640); } /* This should never be called, it's only used as a placeholder. */