mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-03 12:33:58 +00:00
Fix memory maps with offsets not being properly recorded
This commit is contained in:
1 parent
5ba92b4dce
commit
33146871c8
1 file changed
+1
-1
@@ -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