Go through function pointer again

This commit is contained in:
twinaphex 2019-07-08 00:28:15 +02:00
parent 9e4ce6c7e3
commit 614674f436

View File

@ -9165,22 +9165,11 @@ bool video_driver_cached_frame(void)
recording_data = NULL; recording_data = NULL;
if (current_core.inited) if (current_core.inited)
{ retro_ctx.frame_cb(
#ifdef HAVE_NETWORKING (frame_cache_data != RETRO_HW_FRAME_BUFFER_VALID)
if (netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_ENABLED, NULL)) ? frame_cache_data : NULL,
video_frame_net( frame_cache_width,
(frame_cache_data != RETRO_HW_FRAME_BUFFER_VALID) frame_cache_height, frame_cache_pitch);
? frame_cache_data : NULL,
frame_cache_width,
frame_cache_height, frame_cache_pitch);
else
#endif
video_driver_frame(
(frame_cache_data != RETRO_HW_FRAME_BUFFER_VALID)
? frame_cache_data : NULL,
frame_cache_width,
frame_cache_height, frame_cache_pitch);
}
recording_data = recording; recording_data = recording;