Fix crash if PSO is passed to CreateCommandList

This commit is contained in:
baldurk
2024-10-03 16:30:37 +01:00
parent a68c076341
commit 2c1afc36a8
+3 -1
View File
@@ -336,8 +336,10 @@ bool WrappedID3D12Device::Serialise_CreateCommandList(SerialiserType &ser, UINT
{
nodeMask = 0;
// don't pass the initial state. We are about to immediately close the command list anyway, and
// otherwise we would need to wait on it
ID3D12GraphicsCommandList *list = NULL;
HRESULT hr = CreateCommandList(nodeMask, type, pCommandAllocator, pInitialState,
HRESULT hr = CreateCommandList(nodeMask, type, pCommandAllocator, NULL,
__uuidof(ID3D12GraphicsCommandList), (void **)&list);
if(FAILED(hr))