From 0a24f5f38ac7bce1bdc6f61cf0d73bbf4d7d1051 Mon Sep 17 00:00:00 2001 From: jdgleaver Date: Fri, 14 May 2021 13:36:46 +0100 Subject: [PATCH] Fix 'Auto-Shader Delay' functionality --- retroarch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/retroarch.c b/retroarch.c index 276192d811..364a96d98a 100644 --- a/retroarch.c +++ b/retroarch.c @@ -10753,8 +10753,6 @@ static bool retroarch_apply_shader( if (!string_is_empty(preset_path)) preset_file = path_basename_nocompression(preset_path); - p_rarch->runtime_shader_preset[0] = '\0'; - /* TODO/FIXME - This loads the shader into the video driver * But then we load the shader from disk twice more to put it in the menu * We need to reconfigure this at some point to only load it once */ @@ -10775,6 +10773,8 @@ static bool retroarch_apply_shader( shader->modified = false; #endif } + else + p_rarch->runtime_shader_preset[0] = '\0'; if (message) {