mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 06:05:45 +00:00
Removing a resource replacement also needs to clear PostVS cache
This commit is contained in:
@@ -1504,6 +1504,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()
|
||||
|
||||
@@ -1673,6 +1673,8 @@ void D3D12Replay::RemoveReplacement(ResourceId id)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
m_pDevice->GetDebugManager()->ClearPostVSCache();
|
||||
}
|
||||
|
||||
byte *D3D12Replay::GetTextureData(ResourceId tex, uint32_t arrayIdx, uint32_t mip,
|
||||
|
||||
@@ -2947,6 +2947,7 @@ void GLReplay::RemoveReplacement(ResourceId id)
|
||||
{
|
||||
MakeCurrentReplayContext(&m_ReplayCtx);
|
||||
m_pDriver->RemoveReplacement(id);
|
||||
ClearPostVSCache();
|
||||
}
|
||||
|
||||
void GLReplay::FreeTargetResource(ResourceId id)
|
||||
|
||||
@@ -5283,6 +5283,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