Mercurial > games > semicongine
changeset 618:6e07a8649414
fix: to strong assert
author | Sam <sam@basx.dev> |
---|---|
date | Sat, 29 Apr 2023 16:55:46 +0700 |
parents | f7e7af33e9ee |
children | 78411f3b92cd |
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