# HG changeset patch # User Sam # Date 1674121310 -25200 # Node ID 2d81453d8f91213c18b9c16e560f413526111fa8 # Parent 4060401a59d7b77a30ec67caf243d8428548937e fix: correct address retrieval diff -r 4060401a59d7 -r 2d81453d8f91 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 =