Mercurial > games > semicongine
changeset 157:041a114db1dc
fix: to strong assert
author | Sam <sam@basx.dev> |
---|---|
date | Sat, 29 Apr 2023 16:55:46 +0700 |
parents | 134647ed5b60 |
children | 17c2be2d3072 |
files | src/semicongine/renderer.nim src/semicongine/vulkan/buffer.nim src/semicongine/vulkan/drawable.nim |
diffstat | 3 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/semicongine/renderer.nim Sat Apr 29 16:50:43 2023 +0700 +++ b/src/semicongine/renderer.nim Sat Apr 29 16:55:46 2023 +0700 @@ -5,7 +5,6 @@ import ./vulkan/api import ./vulkan/buffer -import ./vulkan/memory import ./vulkan/device import ./vulkan/drawable import ./vulkan/pipeline
--- a/src/semicongine/vulkan/buffer.nim Sat Apr 29 16:50:43 2023 +0700 +++ b/src/semicongine/vulkan/buffer.nim Sat Apr 29 16:55:46 2023 +0700 @@ -99,7 +99,7 @@ assert src.device.vk.valid assert dst.device.vk.valid assert src.device == dst.device - assert src.size == dst.size + assert src.size < dst.size assert VK_BUFFER_USAGE_TRANSFER_SRC_BIT in src.usage assert VK_BUFFER_USAGE_TRANSFER_DST_BIT in dst.usage