# HG changeset patch # User Sam # Date 1682763157 -25200 # Node ID 78411f3b92cdf70d5f885d9f13ca0fcc23a8d03b # Parent 6e07a864941434e68eea3a9ebd1d1a3601134164 fix: forgot to bind buffer diff -r 6e07a8649414 -r 78411f3b92cd src/semicongine/vulkan/buffer.nim --- a/src/semicongine/vulkan/buffer.nim Sat Apr 29 16:55:46 2023 +0700 +++ b/src/semicongine/vulkan/buffer.nim Sat Apr 29 17:12:37 2023 +0700 @@ -57,8 +57,7 @@ buffer.memoryAllocated = true debug "Allocating memory for buffer: ", buffer.size, " bytes of type ", memoryType buffer.memory = buffer.device.allocate(requirements.size, memoryType) - if buffer.memory.canMap: - checkVkResult buffer.device.vk.vkBindBufferMemory(buffer.vk, buffer.memory.vk, VkDeviceSize(0)) + checkVkResult buffer.device.vk.vkBindBufferMemory(buffer.vk, buffer.memory.vk, VkDeviceSize(0)) # currently no support for extended structure and concurrent/shared use # (shardingMode = VK_SHARING_MODE_CONCURRENT not supported)