mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-08 07:41:12 +00:00
Removing a resource replacement also needs to clear PostVS cache
This commit is contained in:
@@ -1385,6 +1385,7 @@ void D3D11Replay::ReplaceResource(ResourceId from, ResourceId to)
|
||||
void D3D11Replay::RemoveReplacement(ResourceId id)
|
||||
{
|
||||
m_pDevice->GetResourceManager()->RemoveReplacement(id);
|
||||
m_pDevice->GetDebugManager()->ClearPostVSCache();
|
||||
}
|
||||
|
||||
vector<GPUCounter> D3D11Replay::EnumerateCounters()
|
||||
|
||||
@@ -1637,6 +1637,8 @@ void D3D12Replay::RemoveReplacement(ResourceId id)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
m_pDevice->GetDebugManager()->ClearPostVSCache();
|
||||
}
|
||||
|
||||
void D3D12Replay::GetTextureData(ResourceId tex, uint32_t arrayIdx, uint32_t mip,
|
||||
|
||||
@@ -2839,6 +2839,7 @@ void GLReplay::RemoveReplacement(ResourceId id)
|
||||
{
|
||||
MakeCurrentReplayContext(&m_ReplayCtx);
|
||||
m_pDriver->RemoveReplacement(id);
|
||||
ClearPostVSCache();
|
||||
}
|
||||
|
||||
void GLReplay::FreeTargetResource(ResourceId id)
|
||||
|
||||
@@ -5311,6 +5311,7 @@ void VulkanReplay::ReplaceResource(ResourceId from, ResourceId to)
|
||||
void VulkanReplay::RemoveReplacement(ResourceId id)
|
||||
{
|
||||
GetDebugManager()->RemoveReplacement(id);
|
||||
GetDebugManager()->ClearPostVSCache();
|
||||
}
|
||||
|
||||
void VulkanReplay::FreeTargetResource(ResourceId id)
|
||||
|
||||
Reference in New Issue
Block a user