Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Nov 9, 2024
2 parents f93c2fd + 6f8e305 commit cc80f7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/vk10/RGFW_vulkan.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,12 @@ void RGFW_createSurface(VkInstance instance, RGFW_window* win, RGFW_window_vulka
vkCreateXlibSurfaceKHR(RGFW_vulkan_info.instance, &x11, NULL, &vulkWin->rSurf);
#endif
#ifdef RGFW_WINDOWS
VkWin32SurfaceCreateInfoKHR win32 = { VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR, 0, 0, GetModuleHandle(NULL), vulkWin->window };
VkWin32SurfaceCreateInfoKHR win32 = { VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR, 0, 0, GetModuleHandle(NULL), (HWND)win->src.window };

vkCreateWin32SurfaceKHR(RGFW_vulkan_info.instance, &win32, NULL, &vulkWin->rSurf);
#endif
#if defined(RGFW_MACOS) && !defined(RGFW_MACOS_X11)
VkMacOSSurfaceCreateFlagsMVK macos = { VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK, 0, 0, vulkWin->display, vulkWin->window };
VkMacOSSurfaceCreateFlagsMVK macos = { VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK, 0, 0, vulkWin->display, (void *)win->src.window };

vkCreateMacOSSurfaceMVK(RGFW_vulkan_info.instance, &macos, NULL, &vulkWin->rSurf);
#endif
Expand Down Expand Up @@ -483,4 +483,4 @@ VkShaderModule RGFW_createShaderModule(const u32* code, size_t code_size) {

return shaderModule;
}
#endif
#endif

0 comments on commit cc80f7c

Please sign in to comment.