mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 07:20:34 +00:00
Prevent video filter init if game is not running (#14593)
This commit is contained in:
parent
9796024f3d
commit
6d34ef46f4
@ -3284,7 +3284,9 @@ bool video_driver_init_internal(bool *video_is_threaded, bool verbosity_enabled)
|
|||||||
#ifdef HAVE_VIDEO_FILTER
|
#ifdef HAVE_VIDEO_FILTER
|
||||||
const char *path_softfilter_plugin = settings->paths.path_softfilter_plugin;
|
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);
|
video_driver_init_filter(video_driver_pix_fmt, settings);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user