# HG changeset patch # User Sam # Date 1677262422 -25200 # Node ID c3b6981764a5718cb41a65261b3e47bfd8e11d16 # Parent db4e583b40c3d2038702a8ad86dcd3adc721848a fix: type mismatch diff -r db4e583b40c3 -r c3b6981764a5 src/semicongine/platform/windows/vulkan.nim --- 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))