- initialized all members of VkWin32SurfaceCreateInfoKHR

Without such initialization vkCreateWin32SurfaceKHR() crashed inside AMD Vulkan driver
This commit is contained in:
alexey.lysiuk 2019-03-04 11:36:38 +02:00
parent 30c6ae5078
commit 6144f02f67

View file

@ -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);