# HG changeset patch # User Sam # Date 1682762146 -25200 # Node ID 6e07a864941434e68eea3a9ebd1d1a3601134164 # Parent f7e7af33e9ee403ac8cb786406aa6ad4dfbf7074 fix: to strong assert diff -r f7e7af33e9ee -r 6e07a8649414 src/semicongine/renderer.nim --- 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 diff -r f7e7af33e9ee -r 6e07a8649414 src/semicongine/vulkan/buffer.nim --- 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 diff -r f7e7af33e9ee -r 6e07a8649414 src/semicongine/vulkan/drawable.nim --- a/src/semicongine/vulkan/drawable.nim Sat Apr 29 16:50:43 2023 +0700 +++ b/src/semicongine/vulkan/drawable.nim Sat Apr 29 16:55:46 2023 +0700 @@ -5,7 +5,6 @@ import ./api import ./utils import ./buffer -import ./memory import ../gpu_data