VideoCommon: when graphics settings change, trigger a reload of all custom shaders

This commit is contained in:
iwubcode 2023-02-09 19:39:40 -06:00
parent 931a8aa413
commit 6ea0d17802

View File

@ -353,6 +353,7 @@ void CheckForConfigChanges()
{
OSD::AddMessage("Video config changed, reloading shaders.", OSD::Duration::NORMAL);
g_vertex_manager->InvalidatePipelineObject();
g_vertex_manager->NotifyCustomShaderCacheOfHostChange(new_host_config);
g_shader_cache->SetHostConfig(new_host_config);
g_shader_cache->Reload();
g_framebuffer_manager->RecompileShaders();