mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 07:12:36 +00:00
- initialized all members of VkWin32SurfaceCreateInfoKHR
Without such initialization vkCreateWin32SurfaceKHR() crashed inside AMD Vulkan driver
This commit is contained in:
parent
30c6ae5078
commit
6144f02f67
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue