From dcfa47c23b02568e209e14a1638dcde91526b3fa Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 9 May 2015 10:36:48 +0200 Subject: [PATCH] Increment runloop->frames.video.count outside of video_driver_frame --- gfx/video_driver.c | 4 ---- libretro_version_1.c | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 74a263b9bd..c795696b7c 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -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; } diff --git a/libretro_version_1.c b/libretro_version_1.c index 31da19a18b..a17f5b265b 100644 --- a/libretro_version_1.c +++ b/libretro_version_1.c @@ -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++; } /**