Skip to content

Commit

Permalink
VideoCommon/RenderBase: Don't destroy pipelines that are in use
Browse files Browse the repository at this point in the history
  • Loading branch information
spycrab committed Mar 7, 2019
1 parent 668b7ee commit 9ca394b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/Core/VideoCommon/RenderBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,12 @@ void Renderer::CheckForConfigChanges()
// Check for post-processing shader changes. Done up here as it doesn't affect anything outside
// the post-processor. Note that options are applied every frame, so no need to check those.
if (m_post_processor->GetConfig()->GetShader() != g_ActiveConfig.sPostProcessingShader)
{
// The existing shader must not be in use when it's destroyed
WaitForGPUIdle();

m_post_processor->RecompileShader();
}

// Determine which (if any) settings have changed.
ShaderHostConfig new_host_config = ShaderHostConfig::GetCurrent();
Expand Down

0 comments on commit 9ca394b

Please sign in to comment.