Mercurial > games > semicongine
changeset 50:73d5e3c9a569
fix: correct address retrieval
author | Sam <sam@basx.dev> |
---|---|
date | Thu, 19 Jan 2023 16:41:50 +0700 |
parents | f70f7b3878e4 |
children | 7684744ab1a4 |
files | src/semicongine/vulkan_helpers.nim |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 =