From 6144f02f67ecf86b3bb516cfc4cd1d1c84219147 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 4 Mar 2019 11:36:38 +0200 Subject: [PATCH] - initialized all members of VkWin32SurfaceCreateInfoKHR Without such initialization vkCreateWin32SurfaceKHR() crashed inside AMD Vulkan driver --- src/rendering/vulkan/system/vk_device.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rendering/vulkan/system/vk_device.cpp b/src/rendering/vulkan/system/vk_device.cpp index 85f2ac847..80898ad0a 100644 --- a/src/rendering/vulkan/system/vk_device.cpp +++ b/src/rendering/vulkan/system/vk_device.cpp @@ -258,6 +258,8 @@ void VulkanDevice::createSurface() #ifdef _WIN32 VkWin32SurfaceCreateInfoKHR windowCreateInfo; windowCreateInfo.sType = VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR; + windowCreateInfo.pNext = nullptr; + windowCreateInfo.flags = 0; windowCreateInfo.hwnd = Window; windowCreateInfo.hinstance = GetModuleHandle(nullptr);