From 5cf5ae696d6f2e7174837442e5d3fece0a65f632 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 21 Jun 2016 12:01:26 +0200 Subject: [PATCH] When capturing a frame, all UpdateSubresource calls are updates * Since the CAPFRAME path in UpdateSubresource doesn't fill in the dummy data there's no point to try and create it so we have some data to fill in. --- renderdoc/driver/d3d11/d3d11_context1_wrap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/driver/d3d11/d3d11_context1_wrap.cpp b/renderdoc/driver/d3d11/d3d11_context1_wrap.cpp index 3a9cbde31..2e4273bb1 100644 --- a/renderdoc/driver/d3d11/d3d11_context1_wrap.cpp +++ b/renderdoc/driver/d3d11/d3d11_context1_wrap.cpp @@ -43,7 +43,7 @@ bool WrappedID3D11DeviceContext::Serialise_UpdateSubresource1(ID3D11Resource *pD if(record && record->NumSubResources > (int)DestSubresource) record = (D3D11ResourceRecord *)record->SubResources[DestSubresource]; - SERIALISE_ELEMENT(uint8_t, isUpdate, record->DataInSerialiser); + SERIALISE_ELEMENT(uint8_t, isUpdate, record->DataInSerialiser || m_State == WRITING_CAPFRAME); ID3D11Resource *DestResource = pDstResource; if(m_State < WRITING)