mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-04 04:56:57 +00:00
Mark resources in UpdateSubresource as frame-referenced
This commit is contained in:
2 files changed
+4
No files matched your search
@@ -335,6 +335,8 @@ void WrappedID3D11DeviceContext::UpdateSubresource1(ID3D11Resource *pDstResource
|
||||
Serialise_UpdateSubresource1(ser, pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch,
|
||||
SrcDepthPitch, CopyFlags);
|
||||
|
||||
MarkResourceReferenced(GetIDForResource(pDstResource), eFrameRef_Write);
|
||||
|
||||
m_MissingTracks.insert(GetIDForResource(pDstResource));
|
||||
|
||||
m_ContextRecord->AddChunk(scope.Get());
|
||||
|
||||
@@ -5776,6 +5776,8 @@ void WrappedID3D11DeviceContext::UpdateSubresource(ID3D11Resource *pDstResource,
|
||||
Serialise_UpdateSubresource(GET_SERIALISER, pDstResource, DstSubresource, pDstBox, pSrcData,
|
||||
SrcRowPitch, SrcDepthPitch);
|
||||
|
||||
MarkResourceReferenced(GetIDForResource(pDstResource), eFrameRef_Write);
|
||||
|
||||
m_MissingTracks.insert(GetIDForResource(pDstResource));
|
||||
|
||||
m_ContextRecord->AddChunk(scope.Get());
|
||||
|
||||
Reference in new issue
Block a user