# HG changeset patch # User Sam # Date 1674121310 -25200 # Node ID 73d5e3c9a569a21ab64ce308780099bc00c7baa3 # Parent f70f7b3878e409ece21b64a298c1fc19686c6c95 fix: correct address retrieval diff -r f70f7b3878e4 -r 73d5e3c9a569 src/semicongine/vulkan_helpers.nim --- a/src/semicongine/vulkan_helpers.nim Thu Jan 19 16:24:54 2023 +0700 +++ b/src/semicongine/vulkan_helpers.nim Thu Jan 19 16:41:50 2023 +0700 @@ -116,7 +116,7 @@ var n_images: uint32 checkVkResult vkGetSwapchainImagesKHR(device, swapChain, addr(n_images), nil); result = newSeq[VkImage](n_images) - checkVkResult vkGetSwapchainImagesKHR(device, swapChain, addr(n_images), addrOrNil(result)); + checkVkResult vkGetSwapchainImagesKHR(device, swapChain, addr(n_images), addr(result[0])) func getPresentMode*(modes: seq[VkPresentModeKHR]): VkPresentModeKHR =