Skip to content
Snippets Groups Projects
Commit 476e4f1e authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Don't call video_cb() if it's NULL

parent 157943e0
No related branches found
No related tags found
No related merge requests found
Pipeline #8083 passed
...@@ -322,7 +322,8 @@ audio_callback(void) ...@@ -322,7 +322,8 @@ audio_callback(void)
RETRO_API void RETRO_API void
retro_run(void) retro_run(void)
{ {
video_cb(last_rect->data, last_rect->rect.width, last_rect->rect.height, last_rect->rect.width * sizeof(uint32_t)); if (video_cb)
video_cb(last_rect->data, last_rect->rect.width, last_rect->rect.height, last_rect->rect.width * sizeof(uint32_t));
} }
RETRO_API size_t RETRO_API size_t
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment