Skip to content

Instantly share code, notes, and snippets.

@psyke83
Created June 5, 2017 04:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psyke83/13a67b9726147bbfa0dd28a17b13ba50 to your computer and use it in GitHub Desktop.
Save psyke83/13a67b9726147bbfa0dd28a17b13ba50 to your computer and use it in GitHub Desktop.
retroarch corruption
diff --git a/cores/dynamic_dummy.c b/cores/dynamic_dummy.c
index 7e8594793..054f6b515 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. */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment