From 6d34ef46f429ede6fe9a6d6713de6beaab6da294 Mon Sep 17 00:00:00 2001 From: sonninnos <45124675+sonninnos@users.noreply.github.com> Date: Sun, 6 Nov 2022 11:16:20 +0200 Subject: [PATCH] Prevent video filter init if game is not running (#14593) --- gfx/video_driver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 7911078ee8..16a54793b2 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -3284,7 +3284,9 @@ bool video_driver_init_internal(bool *video_is_threaded, bool verbosity_enabled) #ifdef HAVE_VIDEO_FILTER const char *path_softfilter_plugin = settings->paths.path_softfilter_plugin; - if (!string_is_empty(path_softfilter_plugin)) + /* Init video filter only when game is running */ + if ((runloop_st->current_core.flags & RETRO_CORE_FLAG_GAME_LOADED) && + !string_is_empty(path_softfilter_plugin)) video_driver_init_filter(video_driver_pix_fmt, settings); #endif