From 3a0dc4e50a01595822b3da63e79a23a9acb96a51 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 8 Oct 2024 15:56:48 +0100 Subject: [PATCH] Fix crash if resizing buffer without previously submitted work --- renderdoc/driver/d3d12/d3d12_initstate.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/renderdoc/driver/d3d12/d3d12_initstate.cpp b/renderdoc/driver/d3d12/d3d12_initstate.cpp index 8396df038..f12ad4c19 100644 --- a/renderdoc/driver/d3d12/d3d12_initstate.cpp +++ b/renderdoc/driver/d3d12/d3d12_initstate.cpp @@ -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);