mirror of
https://gitee.com/openharmony/third_party_vulkan-loader
synced 2024-11-23 23:29:44 +00:00
fix #948 Only calls the first GPDPA in layer chain
This commit is contained in:
parent
5437a0854f
commit
a8c17d6a36
@ -183,9 +183,13 @@ bool loader_check_layer_list_for_phys_dev_ext_address(struct loader_instance *in
|
||||
// it and see if it returns a valid pointer for this function name.
|
||||
if (layer_prop_list[layer].interface_version > 1) {
|
||||
const struct loader_layer_functions *const functions = &(layer_prop_list[layer].functions);
|
||||
if (NULL != functions->get_physical_device_proc_addr &&
|
||||
NULL != functions->get_physical_device_proc_addr((VkInstance)inst->instance, funcName)) {
|
||||
return true;
|
||||
if (NULL != functions->get_physical_device_proc_addr)
|
||||
{
|
||||
if(NULL != functions->get_physical_device_proc_addr((VkInstance)inst->instance, funcName))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user