mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
D3D12: Fix crash/errors when switching MSAA modes while running
This commit is contained in:
parent
1d909ec7a4
commit
9efe66509d
3 changed files with 28 additions and 4 deletions
|
@ -461,6 +461,18 @@ HRESULT StateCache::GetPipelineStateObjectFromCache(SmallPsoDesc* pso_desc, ID3D
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
void StateCache::OnMSAASettingsChanged()
|
||||
{
|
||||
for (auto& it : m_small_pso_map)
|
||||
{
|
||||
SAFE_RELEASE(it.second);
|
||||
}
|
||||
m_small_pso_map.clear();
|
||||
|
||||
// Update sample count for new PSOs being created
|
||||
gx_state_cache.m_current_pso_desc.SampleDesc.Count = g_ActiveConfig.iMultisamples;
|
||||
}
|
||||
|
||||
void StateCache::Clear()
|
||||
{
|
||||
for (auto& it : m_pso_map)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue