mirror of
https://gitlab.freedesktop.org/mesa/vulkan-wsi-layer.git
synced 2025-12-20 02:10:13 +01:00
Merge 'Handle NULL instance parameter in vkGetInstanceProcAddr' into 'main'
See merge request mesa/vulkan-wsi-layer!216
This commit is contained in:
commit
cca5e62704
1 changed files with 5 additions and 0 deletions
|
|
@ -756,6 +756,11 @@ wsi_layer_vkGetInstanceProcAddr(VkInstance instance, const char *funcName) VWL_A
|
|||
GET_PROC_ADDR(vkDestroyInstance);
|
||||
GET_PROC_ADDR(vkCreateDevice);
|
||||
|
||||
if (instance == VK_NULL_HANDLE)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
auto &instance_data = layer::instance_private_data::get(instance);
|
||||
const bool core_1_1 = instance_data.api_version >= VK_API_VERSION_1_1;
|
||||
if ((instance_data.is_instance_extension_enabled(VK_KHR_DEVICE_GROUP_EXTENSION_NAME) &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue