From 50a3cc3cf7b719d0100fe08b23d653a1fe814ea3 Mon Sep 17 00:00:00 2001 From: Torsten Paul Date: Sun, 8 May 2016 18:48:14 +0200 Subject: [PATCH] Ensure video_driver_frame_count is reset when the driver is (re-)initialized. --- gfx/video_driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index f8ca8f9abe..0040216cb7 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -426,9 +426,6 @@ static void init_video_input(const input_driver_t *tmp) if (*input) return; - /* Reset video frame count */ - video_driver_frame_count = 0; - /* Video driver didn't provide an input driver, * so we use configured one. */ RARCH_LOG("Graphics driver did not initialize an input driver. Attempting to pick a suitable driver.\n"); @@ -689,6 +686,9 @@ static bool init_video(void) video_driver_state.filter.out_rgb32 : (video_driver_state.pix_fmt == RETRO_PIXEL_FORMAT_XRGB8888); + /* Reset video frame count */ + video_driver_frame_count = 0; + tmp = input_get_ptr(); /* Need to grab the "real" video driver interface on a reinit. */ video_driver_find_driver();