Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/Vulkan-Loader.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2022-06-02 04:14:04 +0300
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2022-06-02 04:26:13 +0300
commitbcecf87328d8ebcdaff4207678dc5a4f33301be9 (patch)
tree8c8d91c4e61eefe5107f4fde390d48c76a77d058
parentaace830a23b66e1b17e6cc560abebc5f504c7acd (diff)
Revert "fix #948 Only calls the first GPDPA in layer chain"
This reverts commit a8c17d6a367417509aa7b11cf65083eac2b2f4c9.
-rw-r--r--loader/unknown_function_handling.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/loader/unknown_function_handling.c b/loader/unknown_function_handling.c
index 1804eda97..16120c189 100644
--- a/loader/unknown_function_handling.c
+++ b/loader/unknown_function_handling.c
@@ -183,13 +183,9 @@ 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)
- {
- if(NULL != functions->get_physical_device_proc_addr((VkInstance)inst->instance, funcName))
- {
- return true;
- }
- break;
+ if (NULL != functions->get_physical_device_proc_addr &&
+ NULL != functions->get_physical_device_proc_addr((VkInstance)inst->instance, funcName)) {
+ return true;
}
}
}