mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-01 04:10:58 +00:00
Fix crash if resizing buffer without previously submitted work
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user