Increment runloop->frames.video.count outside of video_driver_frame

This commit is contained in:
twinaphex 2015-05-09 10:36:48 +02:00
parent bdecad040b
commit dcfa47c23b
2 changed files with 3 additions and 4 deletions

View File

@ -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;
}

View File

@ -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++;
}
/**