mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Don't remap memory indices for vkAllocMemory while in replay
This commit is contained in:
@@ -184,7 +184,8 @@ VkResult WrappedVulkan::vkAllocMemory(
|
||||
VkDeviceMemory* pMem)
|
||||
{
|
||||
VkMemoryAllocInfo info = *pAllocInfo;
|
||||
info.memoryTypeIndex = GetRecord(device)->memIdxMap[info.memoryTypeIndex];
|
||||
if(m_State >= WRITING)
|
||||
info.memoryTypeIndex = GetRecord(device)->memIdxMap[info.memoryTypeIndex];
|
||||
VkResult ret = ObjDisp(device)->AllocMemory(Unwrap(device), &info, pMem);
|
||||
|
||||
if(ret == VK_SUCCESS)
|
||||
|
||||
Reference in New Issue
Block a user