Fix crash if resizing buffer without previously submitted work

This commit is contained in:
baldurk
2024-10-09 13:03:36 +01:00
parent 7850861734
commit 3a0dc4e50a
@@ -1955,6 +1955,7 @@ void D3D12ResourceManager::Apply_InitialState(ID3D12DeviceChild *live, D3D12Init
if(GetRTManager()->ASSerialiseBuffer)
{
// synchronise the GPU to ensure any previous work is done before resizing
m_Device->GetInitialStateList();
m_Device->CloseInitialStateList();
m_Device->ExecuteLists(NULL, true);
m_Device->FlushLists(true);