|
@@ -1417,6 +1417,7 @@ retro_proc_address_t video_driver_get_proc_address(const char *sym)
|
|
|
#ifdef HAVE_VIDEO_FILTER
|
|
|
void video_driver_filter_free(void)
|
|
|
{
|
|
|
+ RARCH_LOG("[VideoFilter]: video_driver_filter_free");
|
|
|
video_driver_state_t *video_st = &video_driver_st;
|
|
|
if (video_st->state_filter)
|
|
|
rarch_softfilter_free(video_st->state_filter);
|
|
@@ -1437,9 +1438,10 @@ void video_driver_filter_free(void)
|
|
|
video_st->flags &= ~(VIDEO_FLAG_STATE_OUT_RGB32);
|
|
|
}
|
|
|
|
|
|
-void video_driver_init_filter(enum retro_pixel_format colfmt_int,
|
|
|
+void video_driver_filter_init(enum retro_pixel_format colfmt_int,
|
|
|
settings_t *settings)
|
|
|
{
|
|
|
+ RARCH_LOG("[VideoFilter]: video_driver_filter_init");
|
|
|
unsigned pow2_x, pow2_y, maxsize;
|
|
|
void *buf = NULL;
|
|
|
video_driver_state_t *video_st = &video_driver_st;
|
|
@@ -3178,9 +3180,8 @@ bool video_driver_init_internal(bool *video_is_threaded, bool verbosity_enabled)
|
|
|
const char *path_softfilter_plugin = settings->paths.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);
|
|
|
+ if (!string_is_empty(path_softfilter_plugin))
|
|
|
+ video_driver_filter_init(video_driver_pix_fmt, settings);
|
|
|
#endif
|
|
|
|
|
|
max_dim = MAX(geom->max_width, geom->max_height);
|