Add this conditional check

This commit is contained in:
twinaphex 2017-06-05 06:50:24 +02:00
parent c3c772a79a
commit f5fc95cd04

View File

@ -126,7 +126,8 @@ void libretro_dummy_retro_reset(void)
void libretro_dummy_retro_run(void) void libretro_dummy_retro_run(void)
{ {
dummy_input_poll_cb(); 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. */ /* This should never be called, it's only used as a placeholder. */