Mercurial > games > semicongine
changeset 159:9961a988ef9d
fix: wrong parantheses
author | Sam <sam@basx.dev> |
---|---|
date | Sat, 29 Apr 2023 17:20:25 +0700 |
parents | 17c2be2d3072 |
children | 04f5e9a2eb43 |
files | src/semicongine/vulkan/buffer.nim |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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,