mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-10 03:18:55 +02:00
[vulkan] fix custom border color query struct
This commit is contained in:
parent
e470715cc0
commit
598e88ea64
1 changed files with 6 additions and 4 deletions
|
|
@ -1064,12 +1064,14 @@ bool Device::GetSuitability(bool requires_swapchain) {
|
|||
|
||||
// Query VK_EXT_custom_border_color properties if the extension is enabled.
|
||||
if (extensions.custom_border_color) {
|
||||
const auto fp = reinterpret_cast<PFN_vkGetPhysicalDeviceCustomBorderColorPropertiesEXT>(
|
||||
dld.vkGetInstanceProcAddr(instance, "vkGetPhysicalDeviceCustomBorderColorPropertiesEXT"));
|
||||
if (fp != nullptr) {
|
||||
auto proc = dld.vkGetInstanceProcAddr(instance, "vkGetPhysicalDeviceCustomBorderColorPropertiesEXT");
|
||||
if (proc != nullptr) {
|
||||
auto vkGetPhysicalDeviceCustomBorderColorPropertiesEXT =
|
||||
reinterpret_cast<void(*)(VkPhysicalDevice, VkPhysicalDeviceCustomBorderColorPropertiesEXT*)>(
|
||||
proc);
|
||||
custom_border_color_properties.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUSTOM_BORDER_COLOR_PROPERTIES_EXT;
|
||||
custom_border_color_properties.pNext = nullptr;
|
||||
fp(physical, &custom_border_color_properties);
|
||||
vkGetPhysicalDeviceCustomBorderColorPropertiesEXT(physical, &custom_border_color_properties);
|
||||
has_custom_border_color_properties = true;
|
||||
} else {
|
||||
has_custom_border_color_properties = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue