If a shared resource is imported mid-capture, snapshot initial contents

This commit is contained in:
baldurk committed 2021-10-04 15:05:07 +01:00
1 parent 44cfabb12a
commit cd1b68aadf
1 file changed
+3
@@ -3851,6 +3851,9 @@ HRESULT WrappedID3D11Device::OpenSharedResourceInternal(D3D11Chunk chunkType,
record->AddChunk(chunk);
record->SetDataPtr(chunk->GetData());
if(IsActiveCapturing(m_State))
Prepare_InitialState(GetResourceManager()->GetCurrentResource(wrappedID));
return S_OK;
}