*
This commit is contained in:
@@ -2644,6 +2644,7 @@ Buffer::Buffer(Vulkan *instance, VkDeviceSize bufferSize, VkBufferUsageFlags usa
|
|||||||
vkAllocateMemory(instance->Graphics.Device, &memAlloc, nullptr, &Memory);
|
vkAllocateMemory(instance->Graphics.Device, &memAlloc, nullptr, &Memory);
|
||||||
if(res)
|
if(res)
|
||||||
MAKE_ERROR("VkHandler: ошибка выделения памяти на устройстве");
|
MAKE_ERROR("VkHandler: ошибка выделения памяти на устройстве");
|
||||||
|
assert(Memory);
|
||||||
|
|
||||||
vkBindBufferMemory(instance->Graphics.Device, Buff, Memory, 0);
|
vkBindBufferMemory(instance->Graphics.Device, Buff, Memory, 0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user