mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 14:42:30 +00:00
Merge pull request #12395 from jdgleaver/auto-shader-delay-fix
Fix 'Auto-Shader Delay' functionality
This commit is contained in:
commit
2be7106055
@ -10753,8 +10753,6 @@ static bool retroarch_apply_shader(
|
|||||||
if (!string_is_empty(preset_path))
|
if (!string_is_empty(preset_path))
|
||||||
preset_file = path_basename_nocompression(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
|
/* 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
|
* 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 */
|
* 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;
|
shader->modified = false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
p_rarch->runtime_shader_preset[0] = '\0';
|
||||||
|
|
||||||
if (message)
|
if (message)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user