From 6ee92d858332e38ccf3914266553bf9798743045 Mon Sep 17 00:00:00 2001 From: Tony <45124675+sonninnos@users.noreply.github.com> Date: Fri, 17 Dec 2021 17:06:15 +0200 Subject: [PATCH] Stop logging fps statistics twice on quit (#13369) --- gfx/video_driver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 8dc5f7037d..60fcce59b6 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -1528,7 +1528,8 @@ VIDEO_DRIVER_IS_THREADED_INTERNAL(video_st); return; #endif - video_monitor_compute_fps_statistics(video_st->frame_time_count); + if (video_st->data) + video_monitor_compute_fps_statistics(video_st->frame_time_count); } void video_driver_set_viewport_config(