Fix buffer readback on vulkan not advancing source offset for copies

* This would affect anything that displayed more than 16MB of buffer data in the
  UI, as well as replay proxying with the remote server displaying more than
  16MB of buffer data.
This commit is contained in:
baldurk
2018-07-24 15:51:32 +01:00
parent df4458e6d0
commit bf29896f96
+1
View File
@@ -1337,6 +1337,7 @@ void VulkanDebugManager::GetBufferData(ResourceId buff, uint64_t offset, uint64_
RDCASSERT(pData != NULL);
memcpy(&ret[dstoffset], pData, (size_t)chunkSize);
srcoffset += chunkSize;
dstoffset += (size_t)chunkSize;
sizeRemaining -= chunkSize;