# HG changeset patch # User Sam # Date 1682763625 -25200 # Node ID a2afa6337503251dced5e49c1f02157c4a04cbc1 # Parent 78411f3b92cdf70d5f885d9f13ca0fcc23a8d03b fix: wrong parantheses diff -r 78411f3b92cd -r a2afa6337503 src/semicongine/vulkan/buffer.nim --- a/src/semicongine/vulkan/buffer.nim Sat Apr 29 17:12:37 2023 +0700 +++ b/src/semicongine/vulkan/buffer.nim Sat Apr 29 17:20:25 2023 +0700 @@ -75,7 +75,7 @@ result.device = device result.size = size result.usage = usage.toSeq - if not (requireMappable or VK_BUFFER_USAGE_TRANSFER_DST_BIT in result.usage): + if (not requireMappable) or (VK_BUFFER_USAGE_TRANSFER_DST_BIT in result.usage): result.usage.add VK_BUFFER_USAGE_TRANSFER_DST_BIT var createInfo = VkBufferCreateInfo( sType: VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO,