mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-12 01:30:57 +00:00
If a shared resource is imported mid-capture, snapshot initial contents
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user