changeset 160:04f5e9a2eb43

fix: wrong parantheses
author Sam <sam@basx.dev>
date Sat, 29 Apr 2023 17:30:15 +0700
parents 9961a988ef9d
children 1349f87ef083
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:20:25 2023 +0700
+++ b/src/semicongine/vulkan/buffer.nim	Sat Apr 29 17:30:15 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:
     result.usage.add VK_BUFFER_USAGE_TRANSFER_DST_BIT
   var createInfo = VkBufferCreateInfo(
     sType: VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO,