changeset 547:c3b6981764a5

fix: type mismatch
author Sam <sam@basx.dev>
date Sat, 25 Feb 2023 01:13:42 +0700
parents db4e583b40c3
children eefb6a5ae805
files src/semicongine/platform/windows/vulkan.nim
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/semicongine/platform/windows/vulkan.nim	Sat Feb 25 00:44:05 2023 +0700
+++ b/src/semicongine/platform/windows/vulkan.nim	Sat Feb 25 01:13:42 2023 +0700
@@ -4,7 +4,7 @@
 proc createVulkanSurface*(instance: VkInstance, window: NativeWindow): VkSurfaceKHR =
   var surfaceCreateInfo = VkWin32SurfaceCreateInfoKHR(
     sType: VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR,
-    hinstance: window.hinstance,
-    hwnd: window.hwnd,
+    hinstance: cast[HINSTANCE](window.hinstance),
+    hwnd: cast[HWND](window.hwnd),
   )
   checkVkResult vkCreateWin32SurfaceKHR(instance, addr(surfaceCreateInfo), nil, addr(result))