Make sure to pad allocations to allow for buffers on replay as well

* Capture allocations were already doing this, but we create a whole-mem
  buffer for replay allocations so we should also pad them up.
This commit is contained in:
baldurk
2017-06-21 21:16:13 +01:00
parent 4a73c69d1c
commit 72abd054c8
@@ -215,9 +215,9 @@ VkResult WrappedVulkan::vkAllocateMemory(VkDevice device, const VkMemoryAllocate
{
VkMemoryAllocateInfo info = *pAllocateInfo;
if(m_State >= WRITING)
{
info.memoryTypeIndex = GetRecord(device)->memIdxMap[info.memoryTypeIndex];
{
// we need to be able to allocate a buffer that covers the whole memory range. However
// if the memory is e.g. 100 bytes (arbitrary example) and buffers have memory requirements
// such that it must be bound to a multiple of 128 bytes, then we can't create a buffer