fix surface format selection
This commit is contained in:
parent
b1902658aa
commit
5c2a3ab5ef
12
vulkan.d
12
vulkan.d
@ -2613,7 +2613,17 @@ SelectSwapchainFormats(Vulkan* vk)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
vk.surface_format = formats[0];
|
VkSurfaceFormatKHR surface_format = formats[0];
|
||||||
|
foreach(format; formats)
|
||||||
|
{
|
||||||
|
if (format.format == VK_FORMAT_B8G8R8A8_UNORM)
|
||||||
|
{
|
||||||
|
surface_format = format;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
vk.surface_format = surface_format;
|
||||||
vk.present_mode = present_mode;
|
vk.present_mode = present_mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user