Skip to content

Commit 601767c

Browse files
Merge pull request dolphin-emu#12227 from iwubcode/wait_on_gpu_when_config_changes
VideoCommon: wait for the GPU to be finished doing any work before invalidating pipelines when graphics config changes
2 parents 6aadfd5 + b251194 commit 601767c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/Core/VideoCommon/VideoConfig.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ void CheckForConfigChanges()
369369
if (changed_bits & (CONFIG_CHANGE_BIT_HOST_CONFIG | CONFIG_CHANGE_BIT_MULTISAMPLES))
370370
{
371371
OSD::AddMessage("Video config changed, reloading shaders.", OSD::Duration::NORMAL);
372+
g_gfx->WaitForGPUIdle();
372373
g_vertex_manager->InvalidatePipelineObject();
373374
g_vertex_manager->NotifyCustomShaderCacheOfHostChange(new_host_config);
374375
g_shader_cache->SetHostConfig(new_host_config);

0 commit comments

Comments
 (0)