# HG changeset patch # User Sam # Date 1682762146 -25200 # Node ID 041a114db1dc4568580528e4cca63cc3a394ac20 # Parent 134647ed5b60e1b1c18d454cc31cf85d536a2d4f fix: to strong assert diff -r 134647ed5b60 -r 041a114db1dc 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 134647ed5b60 -r 041a114db1dc 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 134647ed5b60 -r 041a114db1dc 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