mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Fix memory maps with offsets not being properly recorded
This commit is contained in:
@@ -383,7 +383,7 @@ VkResult WrappedVulkan::vkMapMemory(VkDevice device, VkDeviceMemory mem, VkDevic
|
||||
// ensure size is valid
|
||||
RDCASSERT(size == VK_WHOLE_SIZE || (size > 0 && size <= memrecord->Length));
|
||||
|
||||
state.mappedPtr = (byte *)realData;
|
||||
state.mappedPtr = (byte *)realData - (size_t)offset;
|
||||
state.refData = NULL;
|
||||
|
||||
state.mapOffset = offset;
|
||||
|
||||
Reference in New Issue
Block a user