mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Increment runloop->frames.video.count outside of video_driver_frame
This commit is contained in:
parent
bdecad040b
commit
dcfa47c23b
@ -819,13 +819,9 @@ bool video_driver_frame(const void *frame, unsigned width,
|
||||
{
|
||||
driver_t *driver = driver_get_ptr();
|
||||
const video_driver_t *video = video_driver_ctx_get_ptr();
|
||||
runloop_t *runloop = rarch_main_get_ptr();
|
||||
|
||||
if (video->frame(driver->video_data, frame,
|
||||
width, height, pitch, msg))
|
||||
{
|
||||
runloop->frames.video.count++;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@ -124,6 +124,7 @@ static void video_frame(const void *data, unsigned width,
|
||||
driver_t *driver = driver_get_ptr();
|
||||
global_t *global = global_get_ptr();
|
||||
settings_t *settings = config_get_ptr();
|
||||
runloop_t *runloop = rarch_main_get_ptr();
|
||||
|
||||
if (!driver->video_active)
|
||||
return;
|
||||
@ -164,6 +165,8 @@ static void video_frame(const void *data, unsigned width,
|
||||
|
||||
if (!video_driver_frame(data, width, height, pitch, msg))
|
||||
driver->video_active = false;
|
||||
|
||||
runloop->frames.video.count++;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user