mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d: Initialize vk_extensions in vk_init_device_caps().
Without LTO, gcc doesn't know that hresult_from_vk_result() will always return a failure HRESULT for a failure VkResult, and so thinks that we might exit from vkd3d_check_device_extensions() with a success HRESULT but without initializing vk_extensions.
This commit is contained in:
parent
5188883142
commit
a595b96f62
Notes:
Henri Verbeet
2024-10-28 18:14:14 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1227
@ -1696,7 +1696,7 @@ static HRESULT vkd3d_init_device_caps(struct d3d12_device *device,
|
||||
VkPhysicalDeviceDescriptorIndexingFeaturesEXT *descriptor_indexing;
|
||||
VkPhysicalDevice physical_device = device->vk_physical_device;
|
||||
struct vkd3d_vulkan_info *vulkan_info = &device->vk_info;
|
||||
VkExtensionProperties *vk_extensions;
|
||||
VkExtensionProperties *vk_extensions = NULL;
|
||||
VkPhysicalDeviceFeatures *features;
|
||||
uint32_t vk_extension_count;
|
||||
HRESULT hr;
|
||||
|
Loading…
Reference in New Issue
Block a user