mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
When mapping with VK_WHOLE_SIZE, account for any offset
This commit is contained in:
@@ -536,7 +536,7 @@ VkResult WrappedVulkan::vkMapMemory(VkDevice device, VkDeviceMemory mem, VkDevic
|
||||
state.refData = NULL;
|
||||
|
||||
state.mapOffset = offset;
|
||||
state.mapSize = size == VK_WHOLE_SIZE ? memrecord->Length : size;
|
||||
state.mapSize = size == VK_WHOLE_SIZE ? (memrecord->Length - offset) : size;
|
||||
state.mapFlushed = false;
|
||||
|
||||
*ppData = realData;
|
||||
|
||||
Reference in New Issue
Block a user