mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-27 00:05:34 +01:00
VideoCommon: wait for the GPU to be finished doing any work before invalidating pipelines when graphic config changes
This commit is contained in:
parent
6aadfd522b
commit
b251194a7e
@ -369,6 +369,7 @@ void CheckForConfigChanges()
|
|||||||
if (changed_bits & (CONFIG_CHANGE_BIT_HOST_CONFIG | CONFIG_CHANGE_BIT_MULTISAMPLES))
|
if (changed_bits & (CONFIG_CHANGE_BIT_HOST_CONFIG | CONFIG_CHANGE_BIT_MULTISAMPLES))
|
||||||
{
|
{
|
||||||
OSD::AddMessage("Video config changed, reloading shaders.", OSD::Duration::NORMAL);
|
OSD::AddMessage("Video config changed, reloading shaders.", OSD::Duration::NORMAL);
|
||||||
|
g_gfx->WaitForGPUIdle();
|
||||||
g_vertex_manager->InvalidatePipelineObject();
|
g_vertex_manager->InvalidatePipelineObject();
|
||||||
g_vertex_manager->NotifyCustomShaderCacheOfHostChange(new_host_config);
|
g_vertex_manager->NotifyCustomShaderCacheOfHostChange(new_host_config);
|
||||||
g_shader_cache->SetHostConfig(new_host_config);
|
g_shader_cache->SetHostConfig(new_host_config);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user