Skip to content
Permalink
Browse files

Finish up the fix attempt for #11882

  • Loading branch information...
hrydgard committed Mar 14, 2019
1 parent 7f1e10a commit d6d6dbb772ad71ced8ffb2f69f9e6e2af1b10414
Showing with 1 addition and 1 deletion.
  1. +1 −1 Common/Vulkan/VulkanMemory.cpp
@@ -57,7 +57,7 @@ bool VulkanPushBuffer::AddBuffer() {
// Okay, that's the buffer. Now let's allocate some memory for it.
VkMemoryAllocateInfo alloc{ VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO };
alloc.allocationSize = reqs.size;
vulkan_->MemoryTypeFromProperties(0xFFFFFFFF, VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT, &alloc.memoryTypeIndex);
vulkan_->MemoryTypeFromProperties(reqs.memoryTypeBits, VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT, &alloc.memoryTypeIndex);

res = vkAllocateMemory(device, &alloc, nullptr, &info.deviceMemory);
if (VK_SUCCESS != res) {

0 comments on commit d6d6dbb

Please sign in to comment.
You can’t perform that action at this time.