(Netplay) Netplay needs to call into video_frame_net

This commit is contained in:
twinaphex 2019-06-22 21:05:35 +02:00
parent a6a6597f2d
commit 4f7f5d2523

View File

@ -9147,11 +9147,20 @@ bool video_driver_cached_frame(void)
recording_data = NULL;
if (current_core.inited)
video_driver_frame(
(frame_cache_data != RETRO_HW_FRAME_BUFFER_VALID)
? frame_cache_data : NULL,
frame_cache_width,
frame_cache_height, frame_cache_pitch);
{
if (netplay_driver_ctl(RARCH_NETPLAY_CTL_IS_ENABLED, NULL))
video_frame_net(
(frame_cache_data != RETRO_HW_FRAME_BUFFER_VALID)
? frame_cache_data : NULL,
frame_cache_width,
frame_cache_height, frame_cache_pitch);
else
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;