changeset 511:2d81453d8f91

fix: correct address retrieval
author Sam <sam@basx.dev>
date Thu, 19 Jan 2023 16:41:50 +0700
parents 4060401a59d7
children 9fd6a78c94a2
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 =