Only call retro_led_interface if LED interface is non-NULL

This commit is contained in:
twinaphex 2022-04-17 01:14:17 +02:00
parent 2e206fa411
commit 5a24d54d30

View File

@ -4834,7 +4834,8 @@ void retro_run(void)
}
/* LED interface */
retro_led_interface();
if (led_state_cb)
retro_led_interface();
video_frames++;
audio_frames += spec.SoundBufSize;